Differentiate pandas objects and SQL filters | Rbcroyalbank Interview Question