SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function argMinArray (children 1) ExpressionList (children 2) Identifier id Identifier num Function argMaxArray (children 1) ExpressionList (children 2) Identifier id Identifier num TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 2) Function arrayJoin (alias num) (children 1) ExpressionList (children 1) Literal Array_[Array_[UInt64_10, UInt64_4, UInt64_3], Array_[UInt64_7, UInt64_5, UInt64_6], Array_[UInt64_8, UInt64_8, UInt64_2]] Function arrayJoin (alias id) (children 1) ExpressionList (children 1) Literal Array_[Array_[UInt64_1, UInt64_2, UInt64_4]]