SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 1)
   ExpressionList (children 5)
    Literal UInt64_0 (alias nelems)
    Literal Array_[NULL, UInt64_9, UInt64_4, UInt64_8, UInt64_10, UInt64_5, UInt64_2, UInt64_3, UInt64_7, UInt64_1, UInt64_6] (alias arr)
    Function arrayPartialSort (children 1)
     ExpressionList (children 2)
      Identifier nelems
      Identifier arr
    Function arrayPartialReverseSort (children 1)
     ExpressionList (children 2)
      Identifier nelems
      Identifier arr
    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 nelems
      Identifier arr
