SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 4) ExpressionList (children 3) Function sum (children 1) ExpressionList (children 1) Function equals (children 1) ExpressionList (children 2) Identifier c0 Literal UInt64_0 Function min (children 1) ExpressionList (children 1) Function plus (children 1) ExpressionList (children 2) Identifier c0 Literal UInt64_1 Function sum (children 1) ExpressionList (children 1) Function plus (children 1) ExpressionList (children 2) Identifier c0 Literal UInt64_2 TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier t_having ExpressionList (children 1) Identifier c0 Function equals (children 1) ExpressionList (children 2) Identifier c0 Literal UInt64_0