You can view the SQL being run when you generate your report, from the report view page.
Follow these steps:
1. Run the report, and then go to 'Details'.
2. From here, select the tab 'SQL Statement'
This will display the SQL, which can then be exported.
See screenshot below:
