Pandas Dataframe Query Like Postgresql Interview Questions