Acuvate Software interview question

SQL queries