Aggregate group expressions with WHERE should not be combined