From the prompted or the diagram views, select View--> SQL to
view the SQL statements that have been created for your query.
Note:
If you are creating your query using the diagram
or prompted views, and you switch to view the SQL statements, you
cannot make changes to the SQL statements and then return to the
prompted or diagram views. Once you make a change to the SQL statements
you cannot go back to the original view.