SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Function maxDistinctMerge (children 1)
     ExpressionList (children 1)
      Identifier state
   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 maxDistinctState (alias state) (children 1)
            ExpressionList (children 1)
             Function tuple (children 1)
              ExpressionList (children 1)
               Function CAST (children 1)
                ExpressionList (children 2)
                 Literal \'str\'
                 Literal \'Variant(LowCardinality(String))\'
