Updated query for question 4