Added group by year query.