SingleDistinctToGroupBy replaces AGG(DISTINCT ..) with AGG(..) GROUP BY ..
SingleDistinctToGroupBy
AGG(DISTINCT ..)
AGG(..) GROUP BY ..