Lumos interview question

Solve a bunch of SQL queries.