@Test
void can_collect_nested_aggregators_in_select_clause() {

  QuerySpecification querySpec = collect(
      "SELECT name, ABS(1 + AVG(age)) FROM test GROUP BY name");
  assertEquals(
      ImmutableSet.of(
          alias("AVG(age)", aggregate("AVG", qualifiedName("age")))),
      querySpec.getAggregators());
}