} else if (setFunctionType.MAX() != null) {
aggr = new MaxAggregated(innerNc);
} else if (setFunctionType.SUM() != null) {
aggr = new SumAggregated(innerNc);
} else if (setFunctionType.AVG() != null) {
aggr = new AvgAggregated(innerNc);
} else {
checkNotNull(setFunctionType.COUNT());
if (isDistinct) {
aggr = new CountDistinctAggregated(innerNc);
} else {