SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 1)
    Identifier x
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 3)
          ExpressionList (children 2)
           Function avg (alias c_7_c4572_1) (children 1)
            ExpressionList (children 1)
             Literal UInt64_0
           Function max (alias x) (children 1)
            ExpressionList (children 1)
             Literal UInt64_0
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier t7 (alias ref_0)
          ExpressionList (children 1)
           Identifier ref_0.c_2_c46_1
   Function lessOrEquals (children 1)
    ExpressionList (children 2)
     Identifier x
     Function multiIf (children 1)
      ExpressionList (children 5)
       Literal Bool_1
       Literal UInt64_1
       Function lessOrEquals (children 1)
        ExpressionList (children 2)
         Function exp10 (children 1)
          ExpressionList (children 1)
           Identifier x
         Literal UInt64_1
       Literal UInt64_1
       Literal UInt64_1
