Converts queries to Excel sheets