Lumen interview question

Basic DBMS questions and puzzles.