You can run the query in the Database Tools area of the control panel. In there you'll see a SQL Command tab.