Sellforte interview question

SQL-like queries but with pandas in python