Queries are statements that display, or return, data based on parameters. We get these results as temporary tables.
Which of these statements is a query, then?
That's it! This select statement is a query that returns a temporary table with the name column from the friends table.
Doesn't CREATE DATABASE just create a database? A statement isn't a query if it doesn't return results.