You can view the SQL for a query using the Query Panel as follows:
1. Select
Tools > Query Panel.
The Query Panel appears.
2. Drag objects to the Results pane on the right.
3. Click
the SQL button.
The SQL for the query appears.
4. Click OK then Cancel to close the Query Panel.