Type the spool command first and then the sql query. This will display the query and then the results.