Philips interview question

Basic SQL queries