Whiteklay interview question

1. Basic SQL queries and puzzles