public final HiveParser.queryOperator_return queryOperator() throws RecognitionException {
		HiveParser.queryOperator_return retval = new HiveParser.queryOperator_return();
		retval.start = input.LT(1);

		CommonTree root_0 = null;

		Token KW_UNION712=null;
		Token KW_ALL713=null;

		CommonTree KW_UNION712_tree=null;
		CommonTree KW_ALL713_tree=null;
		RewriteRuleTokenStream stream_KW_ALL=new RewriteRuleTokenStream(adaptor,"token KW_ALL");
		RewriteRuleTokenStream stream_KW_UNION=new RewriteRuleTokenStream(adaptor,"token KW_UNION");

		 msgs.push("query operator"); 
		try {
			// HiveParser.g:1819:5: ( KW_UNION KW_ALL -> ^( TOK_UNION ) )
			// HiveParser.g:1819:7: KW_UNION KW_ALL
			{
			KW_UNION712=(Token)match(input,KW_UNION,FOLLOW_KW_UNION_in_queryOperator11352);  
			stream_KW_UNION.add(KW_UNION712);

			KW_ALL713=(Token)match(input,KW_ALL,FOLLOW_KW_ALL_in_queryOperator11354);  
			stream_KW_ALL.add(KW_ALL713);

			// AST REWRITE
			// elements: 
			// token labels: 
			// rule labels: retval
			// token list labels: 
			// rule list labels: 
			// wildcard labels: 
			retval.tree = root_0;
			RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

			root_0 = (CommonTree)adaptor.nil();
			// 1819:23: -> ^( TOK_UNION )
			{
				// HiveParser.g:1819:26: ^( TOK_UNION )
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_UNION, "TOK_UNION"), root_1);
				adaptor.addChild(root_0, root_1);
				}

			}


			retval.tree = root_0;

			}

			retval.stop = input.LT(-1);

			retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
			adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

			 msgs.pop(); 
		}

		catch (RecognitionException e) {
		 reportError(e);
		  throw e;
		}

		finally {
			// do for sure before leaving
		}
		return retval;
	}