Add answer to final exam question 2 - aggregation query