SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 3)
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 3)
         ExpressionList (children 4)
          Function toUInt32 (alias id) (children 1)
           ExpressionList (children 1)
            Identifier number
          Function mod (alias age) (children 1)
           ExpressionList (children 2)
            Identifier id
            Literal UInt64_100
          Function multiply (alias sal) (children 1)
           ExpressionList (children 2)
            Function mod (children 1)
             ExpressionList (children 2)
              Identifier id
              Literal UInt64_1000
            Literal UInt64_60
          Function mod (alias nat) (children 1)
           ExpressionList (children 2)
            Identifier id
            Literal UInt64_60
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier system.numbers
         Literal UInt64_10
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 3)
         ExpressionList (children 3)
          Identifier number (alias n)
          Function multiIf (alias lo) (children 1)
           ExpressionList (children 7)
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_0
            Literal UInt64_0
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_1
            Literal UInt64_6
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_2
            Literal UInt64_30
            Literal NULL
          Function multiIf (alias hi) (children 1)
           ExpressionList (children 7)
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_0
            Literal UInt64_5
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_1
            Literal UInt64_29
            Function equals (children 1)
             ExpressionList (children 2)
              Identifier n
              Literal UInt64_2
            Literal UInt64_99
            Literal NULL
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier system.numbers
         Literal UInt64_3
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 3)
         ExpressionList (children 2)
          Function toString (alias name) (children 1)
           ExpressionList (children 1)
            Identifier n
          Function groupBitmapState (alias bit_state) (children 1)
           ExpressionList (children 1)
            Function multiIf (children 1)
             ExpressionList (children 3)
              Function and (children 1)
               ExpressionList (children 2)
                Function greaterOrEquals (children 1)
                 ExpressionList (children 2)
                  Identifier age
                  Identifier lo
                Function lessOrEquals (children 1)
                 ExpressionList (children 2)
                  Identifier age
                  Identifier hi
              Identifier id
              Literal NULL
         TablesInSelectQuery (children 2)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            TableIdentifier men
          TablesInSelectQueryElement (children 2)
           TableExpression (children 1)
            TableIdentifier t
           TableJoin
         ExpressionList (children 1)
          Identifier n
   ExpressionList (children 2)
    Identifier name
    Function sumIf (children 1)
     ExpressionList (children 2)
      Identifier sal
      Function bitmapContains (children 1)
       ExpressionList (children 2)
        Identifier bit_state
        Identifier id
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier men
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      TableIdentifier t2
     TableJoin
   ExpressionList (children 1)
    Identifier name
