Explode group by columns to avoid distinct