RLI interview question

SQL knowledge