SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 6)
    Identifier d
    Function toInt16OrNull (children 1)
     ExpressionList (children 1)
      Identifier d
    Function caseWithExpression (alias case_zero) (children 1)
     ExpressionList (children 4)
      Identifier d
      Literal \'a\'
      Literal UInt64_3
      Function toInt16OrZero (children 1)
       ExpressionList (children 1)
        Identifier d
    Function caseWithExpression (alias case_null) (children 1)
     ExpressionList (children 4)
      Identifier d
      Literal \'a\'
      Literal UInt64_3
      Function toInt16OrNull (children 1)
       ExpressionList (children 1)
        Identifier d
    Function if (alias if_zero) (children 1)
     ExpressionList (children 3)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier d
        Literal \'a\'
      Literal UInt64_3
      Function toInt16OrZero (children 1)
       ExpressionList (children 1)
        Identifier d
    Function if (alias if_null) (children 1)
     ExpressionList (children 3)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier d
        Literal \'a\'
      Literal UInt64_3
      Function toInt16OrNull (children 1)
       ExpressionList (children 1)
        Identifier d
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 1)
          ExpressionList (children 1)
           Function arrayJoin (alias d) (children 1)
            ExpressionList (children 1)
             Literal Array_[\'\', \'1\', \'a\']
   ExpressionList (children 2)
    OrderByElement (children 1)
     Identifier case_zero
    OrderByElement (children 1)
     Identifier d
