Hi,
Turning on the debug mode as Rafał wrote, the SQL query generating the report data can be found in the section as in the screenshot I am attaching.
But if the query takes a long time and returns timout, then you can use SQL Studio and,
for example, using Activity Monitor, 'catch' the query during execution, e.g. in the 'Active expensive Queries' section.
Regards