{CALL:X} SQL Query

You can put the SQL into the script and call the script. Or you can use REPORT SQL DETAILS tag.