parse group by