SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Identifier res
   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 arrayPartialReverseSort (alias arr) (children 1)
            ExpressionList (children 2)
             Literal UInt64_2
             Function if (children 1)
              ExpressionList (children 3)
               Function modulo (children 1)
                ExpressionList (children 2)
                 Identifier number
                 Literal UInt64_2
               Function emptyArrayUInt64 (children 1)
                ExpressionList
               Function range (children 1)
                ExpressionList (children 1)
                 Identifier number
           Function arrayResize (alias res) (children 1)
            ExpressionList (children 2)
             Identifier arr
             Function if (children 1)
              ExpressionList (children 3)
               Function empty (children 1)
                ExpressionList (children 1)
                 Identifier arr
               Literal UInt64_0
               Literal UInt64_2
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier system.numbers
          Literal UInt64_10
