GROUPing by "group_id and id " before dedup0 and dedup1