Question 5 with bug from DataFrame.query