Save the file and click the Execute Snow Owl script button in the main toolbar to execute the script in the currently active file editor. Another way is to right-click on the text editor and select the same Execute Snow Owl script option from the Context Menu.
The results are displayed in the Console View.
Queries can be saved as delimiter separated value files or saved to XML with only a short script.