// TODO do not use WrappedException in InterpretsColumnReferences
Proposition havingCondition = ConditionTranslation.of(columnNamesLookupForHaving(raBuilder), raBuilder, havingClause.searchCondition()).proposition();
raBuilder.withHaving(havingCondition);
}
state.rela = raBuilder.build();
state.updateColumnScopeWithRelationsColumns();
// TODO test this further in SelectFromTest.SelectDistinct
boolean selectDistinct = ctx.setQuantifier() != null && ctx.setQuantifier().DISTINCT() != null;