Thoughtworks interview question

TO Run a few SQL queries