SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 1)
    Function or (alias alias_in_error) (children 1)
     ExpressionList (children 6)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier path
        Literal \'test1\'
      Function match (children 1)
       ExpressionList (children 2)
        Identifier path
        Literal \'test2\'
      Function and (children 1)
       ExpressionList (children 2)
        Function match (children 1)
         ExpressionList (children 2)
          Identifier path
          Literal \'test3\'
        Function match (children 1)
         ExpressionList (children 2)
          Identifier path
          Literal \'test2\'
      Function match (children 1)
       ExpressionList (children 2)
        Identifier path
        Literal \'test4\'
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier path
        Literal \'test5\'
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier path
        Literal \'test6\'
   ExpressionList (children 1)
    Function count (children 1)
     ExpressionList (children 1)
      Literal UInt64_1
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier test_bug_optimization
   Identifier alias_in_error
