Basic SQL query question

To export to cvs adjust like shown here: Long Term Query Log -> Excel Pivot Chart - #7 by yubiuser