Run the query you wish to export. Right-click on the results of the query and select 'Export'
Run the query you wish to export, and use the triangle icon on the top right to display more options. Select 'Export to .csv...'
Only available in version 2017.3 and above.