title: identify group by vs group each in advance
body: <p>Is there a way to figure out in advance (not by trial and error) whether a specific query should use GROUP BY or GROUP EACH BY?
  We currently saw that after a cardinality of ~60-70% we are asked to use Group EACH by. It is hard to predict as we generate the SQL.</p>