Google interview question

How to query a database using sql