group by included in SQL query.