SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 1)
   ExpressionList (children 4)
    Function materialize (alias arr) (children 1)
     ExpressionList (children 1)
      Literal Array_[UInt64_9, UInt64_4, UInt64_8, UInt64_10, UInt64_5, UInt64_2, UInt64_3, UInt64_7, UInt64_1, UInt64_6]
    Literal UInt64_4 (alias lim)
    Function arrayResize (children 1)
     ExpressionList (children 2)
      Function arrayPartialReverseSort (children 1)
       ExpressionList (children 2)
        Identifier lim
        Identifier arr
      Identifier lim
    Function arrayResize (children 1)
     ExpressionList (children 2)
      Function arrayPartialSort (children 1)
       ExpressionList (children 3)
        Function lambda (children 1)
         ExpressionList (children 2)
          Function tuple (children 1)
           ExpressionList (children 1)
            Identifier x
          Function negate (children 1)
           ExpressionList (children 1)
            Identifier x
        Identifier lim
        Identifier arr
      Identifier lim
