AST __t1339 = _t; synPredMatched1339 = true;
AST __t1340 = _t; synPredMatched1340 = true;
	public final void selectstatea(AST _t) throws RecognitionException {				AST selectstatea_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1304 = _t;		AST tmp1646_AST_in = (AST)_t;		match(_t,SELECT);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case ALL:		{			AST tmp1647_AST_in = (AST)_t;			match(_t,ALL);			_t = _t.getNextSibling();			break;		}		case DISTINCT:		{			AST tmp1648_AST_in = (AST)_t;			match(_t,DISTINCT);			_t = _t.getNextSibling();			break;		}		case STAR:		case Sql_select_what:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case STAR:		{			AST tmp1649_AST_in = (AST)_t;			match(_t,STAR);			_t = _t.getNextSibling();			break;		}		case Sql_select_what:		{			AST __t1307 = _t;			AST tmp1650_AST_in = (AST)_t;			match(_t,Sql_select_what);			_t = _t.getFirstChild();			{			boolean synPredMatched1310 = false;			if (_t==null) _t=ASTNULL;			if (((_t.getType()==LEFTPAREN))) {				AST __t1310 = _t;				synPredMatched1310 = true;				inputState.guessing++;				try {					{					AST tmp1651_AST_in = (AST)_t;					match(_t,LEFTPAREN);					_t = _t.getNextSibling();					}				}				catch (RecognitionException pe) {					synPredMatched1310 = false;				}				_t = __t1310;inputState.guessing--;			}			if ( synPredMatched1310 ) {				AST tmp1652_AST_in = (AST)_t;				match(_t,LEFTPAREN);				_t = _t.getNextSibling();				sqlexpression(_t);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case Format_phrase:				{					formatphrase(_t);					_t = _retTree;					break;				}				case RIGHTPAREN:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				AST tmp1653_AST_in = (AST)_t;				match(_t,RIGHTPAREN);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case Format_phrase:				{					formatphrase(_t);					_t = _retTree;					break;				}				case 3:				case COMMA:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}			}			else if ((_tokenSet_30.member(_t.getType()))) {				sqlexpression(_t);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case Format_phrase:				{					formatphrase(_t);					_t = _retTree;					break;				}				case 3:				case COMMA:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}			}			else {				throw new NoViableAltException(_t);			}						}			{			_loop1316:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==COMMA)) {					AST tmp1654_AST_in = (AST)_t;					match(_t,COMMA);					_t = _t.getNextSibling();					sqlexpression(_t);					_t = _retTree;					{					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case Format_phrase:					{						formatphrase(_t);						_t = _retTree;						break;					}					case 3:					case COMMA:					{						break;					}					default:					{						throw new NoViableAltException(_t);					}					}					}				}				else {					break _loop1316;				}							} while (true);			}			_t = __t1307;			_t = _t.getNextSibling();			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case INTO:		{			AST __t1318 = _t;			AST tmp1655_AST_in = (AST)_t;			match(_t,INTO);			_t = _t.getFirstChild();			fld(_t,CQ.UPDATING);			_t = _retTree;			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case INDICATOR:			case Field_ref:			{				fetch_indicator(_t);				_t = _retTree;				break;			}			case 3:			case COMMA:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			_loop1322:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==COMMA)) {					AST tmp1656_AST_in = (AST)_t;					match(_t,COMMA);					_t = _t.getNextSibling();					fld(_t,CQ.UPDATING);					_t = _retTree;					{					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case INDICATOR:					case Field_ref:					{						fetch_indicator(_t);						_t = _retTree;						break;					}					case 3:					case COMMA:					{						break;					}					default:					{						throw new NoViableAltException(_t);					}					}					}				}				else {					break _loop1322;				}							} while (true);			}			_t = __t1318;			_t = _t.getNextSibling();			break;		}		case FROM:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST __t1323 = _t;		AST tmp1657_AST_in = (AST)_t;		match(_t,FROM);		_t = _t.getFirstChild();		select_from_spec(_t);		_t = _retTree;		{		_loop1325:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==COMMA)) {				AST tmp1658_AST_in = (AST)_t;				match(_t,COMMA);				_t = _t.getNextSibling();				select_from_spec(_t);				_t = _retTree;			}			else {				break _loop1325;			}					} while (true);		}		_t = __t1323;		_t = _t.getNextSibling();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case GROUP:		{			AST __t1327 = _t;			AST tmp1659_AST_in = (AST)_t;			match(_t,GROUP);			_t = _t.getFirstChild();			AST tmp1660_AST_in = (AST)_t;			match(_t,BY);			_t = _t.getNextSibling();			expression(_t);			_t = _retTree;			{			_loop1329:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==COMMA)) {					AST tmp1661_AST_in = (AST)_t;					match(_t,COMMA);					_t = _t.getNextSibling();					expression(_t);					_t = _retTree;				}				else {					break _loop1329;				}							} while (true);			}			_t = __t1327;			_t = _t.getNextSibling();			break;		}		case 3:		case BY:		case HAVING:		case ORDER:		case UNION:		case WITH:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HAVING:		{			AST __t1331 = _t;			AST tmp1662_AST_in = (AST)_t;			match(_t,HAVING);			_t = _t.getFirstChild();			sqlexpression(_t);			_t = _retTree;			_t = __t1331;			_t = _t.getNextSibling();			break;		}		case 3:		case BY:		case ORDER:		case UNION:		case WITH:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case ORDER:		{			AST __t1333 = _t;			AST tmp1663_AST_in = (AST)_t;			match(_t,ORDER);			_t = _t.getFirstChild();			AST tmp1664_AST_in = (AST)_t;			match(_t,BY);			_t = _t.getNextSibling();			select_order_expr(_t);			_t = _retTree;			_t = __t1333;			_t = _t.getNextSibling();			break;		}		case BY:		{			AST __t1334 = _t;			AST tmp1665_AST_in = (AST)_t;			match(_t,BY);			_t = _t.getFirstChild();			select_order_expr(_t);			_t = _retTree;			_t = __t1334;			_t = _t.getNextSibling();			break;		}		case 3:		case UNION:		case WITH:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		if (((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH))&&(_t != null)) {			{			boolean synPredMatched1339 = false;			if (_t==null) _t=ASTNULL;			if ((((_t.getType()==WITH))&&(_t != null))) {				AST __t1339 = _t;				synPredMatched1339 = true;				inputState.guessing++;				try {					{					AST __t1338 = _t;					AST tmp1666_AST_in = (AST)_t;					match(_t,WITH);					_t = _t.getFirstChild();					AST tmp1667_AST_in = (AST)_t;					match(_t,CHECK);					_t = _t.getNextSibling();					AST tmp1668_AST_in = (AST)_t;					match(_t,OPTION);					_t = _t.getNextSibling();					_t = __t1338;					_t = _t.getNextSibling();					}				}				catch (RecognitionException pe) {					synPredMatched1339 = false;				}				_t = __t1339;inputState.guessing--;			}			if ( synPredMatched1339 ) {				AST __t1340 = _t;				AST tmp1669_AST_in = (AST)_t;				match(_t,WITH);				_t = _t.getFirstChild();				AST tmp1670_AST_in = (AST)_t;				match(_t,CHECK);				_t = _t.getNextSibling();				AST tmp1671_AST_in = (AST)_t;				match(_t,OPTION);				_t = _t.getNextSibling();				_t = __t1340;				_t = _t.getNextSibling();			}			else if ((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH)) {			}			else {				throw new NoViableAltException(_t);			}						}		}		else if ((_t.getType()==3||_t.getType()==UNION||_t.getType()==WITH)) {		}		else {			throw new NoViableAltException(_t);		}				}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case WITH:		{			framephrase(_t);			_t = _retTree;			break;		}		case 3:		case UNION:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case UNION:		{			AST __t1343 = _t;			AST tmp1672_AST_in = (AST)_t;			match(_t,UNION);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case ALL:			{				AST tmp1673_AST_in = (AST)_t;				match(_t,ALL);				_t = _t.getNextSibling();				break;			}			case SELECT:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			selectstatea(_t);			_t = _retTree;			_t = __t1343;			_t = _t.getNextSibling();			break;		}		case 3:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		_t = __t1304;		_t = _t.getNextSibling();		_retTree = _t;	}