SQL queries tables. The result is a table. If you save the result of a query in a table then that table can be queried using SQL.