Google Interview Question

How to query a database using sql