Using the hyperlinks in the report, you can drill down to the details of each statement, including the statement text and operation information for each execution statement.
You can test and refine your SQL statement right from the Eclipse workbench until it satisfies your needs and then cut-and-paste the SQL statement text into your reporting JSP file.