il group by va dopo il where.