P.I. Works interview question

SQL queries, database related questions.