Meta Interview Question

SQL questions. You can solve it in Pandas though