SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 1)
   ExpressionList (children 1)
    Function equals (children 1)
     ExpressionList (children 2)
      Function toTypeName (children 1)
       ExpressionList (children 1)
        Function initializeAggregation (children 1)
         ExpressionList (children 2)
          Literal \'uniqExactState\'
          Function toNullable (children 1)
           ExpressionList (children 1)
            Literal \'foo\'
      Function toTypeName (children 1)
       ExpressionList (children 1)
        Function arrayReduce (children 1)
         ExpressionList (children 2)
          Literal \'uniqExactState\'
          Function array (children 1)
           ExpressionList (children 1)
            Function toNullable (children 1)
             ExpressionList (children 1)
              Literal \'foo\'
