SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 1) Function arrayReduce (children 1) ExpressionList (children 2) Literal \'median\' Function array (children 1) ExpressionList (children 1) Function toDecimal32OrNull (children 1) ExpressionList (children 2) Literal \'1\' Literal UInt64_2