You may wish to use SQL to create or edit your query. Working with SQL involves:
Editing with SQL
Importing SQL Files
Reviewing the SQL Log