All Downloads are FREE. Search and download functionalities are using the official Maven repository.

enjpa.openjpa-kernel.1.2.3.source-code.JPQL Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
/* Generated By:JJTree&JavaCC: Do not edit this line. JPQL.java */
package org.apache.openjpa.kernel.jpql;

import java.io.*;



/**
 *	@nojavadoc
 */
public class JPQL/*@bgen(jjtree)*/implements JPQLTreeConstants, JPQLConstants {/*@bgen(jjtree)*/
  protected JJTJPQLState jjtree = new JJTJPQLState();String jpql;
        boolean inEnumPath;


        public JPQL (String jpql)
        {
                this (new StringReader (jpql));

                this.jpql = jpql;
        }


        public static void main (String[] args)
                throws Exception
        {
                if (args.length > 0)
                {
                        for (int i = 0; i < args.length; i++)
                        {
                                JPQL parser = new JPQL (args[i]);
                                SimpleNode ast = (SimpleNode) parser.parseQuery ();
                                ast.dump (System.out, "");
                        }
                }
                else
                {
                        JPQL parser = new JPQL (System.in);
                        while (true)
                        {
                                System.out.print ("Enter Expression: ");
                                System.out.flush ();
                                try
                                {
                                        SimpleNode ast = (SimpleNode) parser.parseQuery ();
                                        if (ast == null)
                                                return;
                                        else
                                                ast.dump (System.out, "");
                                }
                                catch (Throwable x)
                                {
                                        x.printStackTrace ();
                                        return;
                                }
                        }
                }
        }

  final public Node parseQuery() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case SELECT:
      select_statement();
      break;
    case UPDATE:
      update_statement();
      break;
    case DELETE:
      delete_statement();
      break;
    default:
      jj_la1[0] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    jj_consume_token(0);
                {if (true) return jjtree.rootNode();}
    throw new Error("Missing return statement in function");
  }

  final public void select_statement() throws ParseException {
                                   /*@bgen(jjtree) SELECT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      select_clause();
      from_clause();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case WHERE:
        where_clause();
        break;
      default:
        jj_la1[1] = jj_gen;
        ;
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case GROUP:
        groupby_clause();
        break;
      default:
        jj_la1[2] = jj_gen;
        ;
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case HAVING:
        having_clause();
        break;
      default:
        jj_la1[3] = jj_gen;
        ;
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case ORDER:
        orderby_clause();
        break;
      default:
        jj_la1[4] = jj_gen;
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void update_statement() throws ParseException {
                                   /*@bgen(jjtree) UPDATE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTUPDATE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      update_clause();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case WHERE:
        where_clause();
        break;
      default:
        jj_la1[5] = jj_gen;
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void delete_statement() throws ParseException {
                                   /*@bgen(jjtree) DELETE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTDELETE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(DELETE);
      jj_consume_token(FROM);
                           SimpleNode jjtn001 = new SimpleNode(this, JJTFROM);
                           boolean jjtc001 = true;
                           jjtree.openNodeScope(jjtn001);
      try {
        from_item();
      } catch (Throwable jjte001) {
                           if (jjtc001) {
                             jjtree.clearNodeScope(jjtn001);
                             jjtc001 = false;
                           } else {
                             jjtree.popNode();
                           }
                           if (jjte001 instanceof RuntimeException) {
                             {if (true) throw (RuntimeException)jjte001;}
                           }
                           if (jjte001 instanceof ParseException) {
                             {if (true) throw (ParseException)jjte001;}
                           }
                           {if (true) throw (Error)jjte001;}
      } finally {
                           if (jjtc001) {
                             jjtree.closeNodeScope(jjtn001, true);
                           }
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case WHERE:
        where_clause();
        break;
      default:
        jj_la1[6] = jj_gen;
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void from_clause() throws ParseException {
                            /*@bgen(jjtree) FROM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTFROM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(FROM);
      identification_variable_declaration();
      label_1:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[7] = jj_gen;
          break label_1;
        }
        jj_consume_token(COMMA);
        if (jj_2_1(2147483647)) {
          collection_member_declaration();
        } else if (jj_2_2(2147483647)) {
          identification_variable_declaration();
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void identification_variable_declaration() throws ParseException {
    from_item();
    label_2:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case LEFT:
      case INNER:
      case JOIN:
        ;
        break;
      default:
        jj_la1[8] = jj_gen;
        break label_2;
      }
      if (jj_2_3(2147483647)) {
        fetch_join();
      } else if (jj_2_4(2147483647)) {
        inner_join();
      } else if (jj_2_5(2147483647)) {
        outer_join();
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void from_item() throws ParseException {
                              /*@bgen(jjtree) FROMITEM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTFROMITEM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      abstract_schema_name();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AS:
        jj_consume_token(AS);
        break;
      default:
        jj_la1[9] = jj_gen;
        ;
      }
      if (jj_2_6(2147483647)) {
        identification_variable();
      } else {
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void subquery_from_clause() throws ParseException {
                                     /*@bgen(jjtree) FROM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTFROM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(FROM);
      subquery_from_item();
      label_3:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[10] = jj_gen;
          break label_3;
        }
        jj_consume_token(COMMA);
        subquery_from_item();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void subquery_from_item() throws ParseException {
    if (jj_2_7(2147483647)) {
      collection_member_declaration();
    } else if (jj_2_8(2147483647)) {
      identification_variable_declaration();
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void inner_join() throws ParseException {
                                /*@bgen(jjtree) INNERJOIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTINNERJOIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case INNER:
        jj_consume_token(INNER);
        break;
      default:
        jj_la1[11] = jj_gen;
        ;
      }
      jj_consume_token(JOIN);
      path();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AS:
        jj_consume_token(AS);
        break;
      default:
        jj_la1[12] = jj_gen;
        ;
      }
      identification_variable();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void collection_member_declaration() throws ParseException {
                                                   /*@bgen(jjtree) INNERJOIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTINNERJOIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(IN);
      jj_consume_token(85);
      path();
      jj_consume_token(86);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AS:
        jj_consume_token(AS);
        break;
      default:
        jj_la1[13] = jj_gen;
        ;
      }
      identification_variable();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void outer_join() throws ParseException {
                                /*@bgen(jjtree) OUTERJOIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTOUTERJOIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LEFT);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case OUTER:
        jj_consume_token(OUTER);
        break;
      default:
        jj_la1[14] = jj_gen;
        ;
      }
      jj_consume_token(JOIN);
      path();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AS:
        jj_consume_token(AS);
        break;
      default:
        jj_la1[15] = jj_gen;
        ;
      }
      identification_variable();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void fetch_join() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case LEFT:
      outer_fetch_join();
      break;
    case INNER:
    case JOIN:
      inner_fetch_join();
      break;
    default:
      jj_la1[16] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void outer_fetch_join() throws ParseException {
                                           /*@bgen(jjtree) OUTERFETCHJOIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTOUTERFETCHJOIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LEFT);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case OUTER:
        jj_consume_token(OUTER);
        break;
      default:
        jj_la1[17] = jj_gen;
        ;
      }
      jj_consume_token(JOIN);
      jj_consume_token(FETCH);
      path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void inner_fetch_join() throws ParseException {
                                           /*@bgen(jjtree) INNERFETCHJOIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTINNERFETCHJOIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case INNER:
        jj_consume_token(INNER);
        break;
      default:
        jj_la1[18] = jj_gen;
        ;
      }
      jj_consume_token(JOIN);
      jj_consume_token(FETCH);
      path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void path() throws ParseException {
                     /*@bgen(jjtree) PATH */
  SimpleNode jjtn000 = new SimpleNode(this, JJTPATH);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      identification_variable();
      label_4:
      while (true) {
        jj_consume_token(DOT);
        path_component();
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case DOT:
          ;
          break;
        default:
          jj_la1[19] = jj_gen;
          break label_4;
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void update_clause() throws ParseException {
    jj_consume_token(UPDATE);
                   SimpleNode jjtn001 = new SimpleNode(this, JJTFROM);
                   boolean jjtc001 = true;
                   jjtree.openNodeScope(jjtn001);
    try {
      from_item();
    } catch (Throwable jjte001) {
                   if (jjtc001) {
                     jjtree.clearNodeScope(jjtn001);
                     jjtc001 = false;
                   } else {
                     jjtree.popNode();
                   }
                   if (jjte001 instanceof RuntimeException) {
                     {if (true) throw (RuntimeException)jjte001;}
                   }
                   if (jjte001 instanceof ParseException) {
                     {if (true) throw (ParseException)jjte001;}
                   }
                   {if (true) throw (Error)jjte001;}
    } finally {
                   if (jjtc001) {
                     jjtree.closeNodeScope(jjtn001, true);
                   }
    }
    set_clause();
  }

  final public void set_clause() throws ParseException {
    jj_consume_token(SET);
    update_item();
    label_5:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case COMMA:
        ;
        break;
      default:
        jj_la1[20] = jj_gen;
        break label_5;
      }
      jj_consume_token(COMMA);
      update_item();
    }
  }

  final public void update_item() throws ParseException {
                                  /*@bgen(jjtree) UPDATEITEM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTUPDATEITEM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      path();
      EQ();
      new_value();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void new_value() throws ParseException {
                                 /*@bgen(jjtree) UPDATEVALUE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTUPDATEVALUE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      if (jj_2_9(2147483647)) {
        arithmetic_expression();
      } else if (jj_2_10(2147483647)) {
        string_primary();
      } else if (jj_2_11(2147483647)) {
        datetime_primary();
      } else if (jj_2_12(2147483647)) {
        boolean_primary();
      } else if (jj_2_13(2147483647)) {
        enum_primary();
      } else if (jj_2_14(2147483647)) {
        simple_entity_expression();
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NULL:
          jj_consume_token(NULL);
          break;
        default:
          jj_la1[21] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void simple_entity_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      identification_variable();
      break;
    case 87:
    case 88:
      input_parameter();
      break;
    default:
      jj_la1[22] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void select_clause() throws ParseException {
                                      /*@bgen(jjtree) SELECTCLAUSE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTCLAUSE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SELECT);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DISTINCT:
        distinct();
        break;
      default:
        jj_la1[23] = jj_gen;
        ;
      }
      select_expressions();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void simple_select_clause() throws ParseException {
                                             /*@bgen(jjtree) SELECTCLAUSE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTCLAUSE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SELECT);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DISTINCT:
        distinct();
        break;
      default:
        jj_la1[24] = jj_gen;
        ;
      }
      subselect_expressions();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void select_expressions() throws ParseException {
                                                /*@bgen(jjtree) SELECTEXPRESSIONS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTEXPRESSIONS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      select_expression();
      label_6:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[25] = jj_gen;
          break label_6;
        }
        jj_consume_token(COMMA);
        select_expression();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void select_expression() throws ParseException {
                                              /*@bgen(jjtree) SELECTEXPRESSION */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTEXPRESSION);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AVG:
      case MIN:
      case MAX:
      case SUM:
      case COUNT:
        aggregate_select_expression();
        break;
      default:
        jj_la1[26] = jj_gen;
        if (jj_2_15(2147483647)) {
          path();
        } else {
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case IDENTIFIER:
            identification_variable();
            break;
          case OBJECT:
            jj_consume_token(OBJECT);
            jj_consume_token(85);
            identification_variable();
            jj_consume_token(86);
            break;
          case NEW:
            constructor_expression();
            break;
          case CONCAT:
          case SUBSTRING:
          case TRIM:
          case LOWER:
          case UPPER:
          case LENGTH:
          case LOCATE:
          case ABS:
          case SQRT:
          case MOD:
          case SIZE:
          case CURRENT_DATE:
          case CURRENT_TIME:
          case CURRENT_TIMESTAMP:
            select_extension();
            break;
          default:
            jj_la1[27] = jj_gen;
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void select_extension() throws ParseException {
                                            /*@bgen(jjtree) SELECTEXTENSION */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTEXTENSION);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      scalar_function();
    } catch (Throwable jjte000) {
      if (jjtc000) {
        jjtree.clearNodeScope(jjtn000);
        jjtc000 = false;
      } else {
        jjtree.popNode();
      }
      if (jjte000 instanceof RuntimeException) {
        {if (true) throw (RuntimeException)jjte000;}
      }
      if (jjte000 instanceof ParseException) {
        {if (true) throw (ParseException)jjte000;}
      }
      {if (true) throw (Error)jjte000;}
    } finally {
      if (jjtc000) {
        jjtree.closeNodeScope(jjtn000, true);
      }
    }
  }

  final public void subselect_expressions() throws ParseException {
                                                   /*@bgen(jjtree) SELECTEXPRESSIONS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTEXPRESSIONS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      subselect_expression();
      label_7:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[28] = jj_gen;
          break label_7;
        }
        jj_consume_token(COMMA);
        subselect_expression();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void subselect_expression() throws ParseException {
                                                 /*@bgen(jjtree) SELECTEXPRESSION */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSELECTEXPRESSION);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      if (jj_2_16(2147483647)) {
        path();
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
          aggregate_select_expression();
          break;
        case IDENTIFIER:
          identification_variable();
          break;
        default:
          jj_la1[29] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void constructor_expression() throws ParseException {
                                              /*@bgen(jjtree) CONSTRUCTOR */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCONSTRUCTOR);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(NEW);
      classname();
      constructor_parameters();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void classname() throws ParseException {
 /*@bgen(jjtree) CLASSNAME */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCLASSNAME);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      identification_variable();
      label_8:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case DOT:
          ;
          break;
        default:
          jj_la1[30] = jj_gen;
          break label_8;
        }
        jj_consume_token(DOT);
        identification_variable();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void constructor_parameters() throws ParseException {
                                                    /*@bgen(jjtree) CONSTRUCTORPARAMS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCONSTRUCTORPARAMS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(85);
      constructor_parameter();
      label_9:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[31] = jj_gen;
          break label_9;
        }
        jj_consume_token(COMMA);
        constructor_parameter();
      }
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void constructor_parameter() throws ParseException {
                                                  /*@bgen(jjtree) CONSTRUCTORPARAM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCONSTRUCTORPARAM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case IDENTIFIER:
        path();
        break;
      case AVG:
      case MIN:
      case MAX:
      case SUM:
      case COUNT:
        aggregate_select_expression();
        break;
      default:
        jj_la1[32] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

/* rewritten to reduce lookaheads */
  final public void aggregate_select_expression() throws ParseException {
                                                 /*@bgen(jjtree) AGGREGATE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTAGGREGATE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case AVG:
        avg();
        break;
      case MAX:
        max();
        break;
      case MIN:
        min();
        break;
      case SUM:
        sum();
        break;
      case COUNT:
        count();
        break;
      default:
        jj_la1[33] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void distinct() throws ParseException {
                             /*@bgen(jjtree) DISTINCT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTDISTINCT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(DISTINCT);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void aggregate_path() throws ParseException {
    jj_consume_token(85);
    if (jj_2_17(2147483647)) {
      arithmetic_expression();
    } else if (jj_2_18(2147483647)) {
      distinct_path();
    } else if (jj_2_19(2147483647)) {
      path();
    } else if (jj_2_20(2147483647)) {
      identification_variable();
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    jj_consume_token(86);
  }

  final public void distinct_path() throws ParseException {
                                      /*@bgen(jjtree) DISTINCTPATH */
  SimpleNode jjtn000 = new SimpleNode(this, JJTDISTINCTPATH);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(DISTINCT);
      if (jj_2_21(2147483647)) {
        path();
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case IDENTIFIER:
          identification_variable();
          break;
        default:
          jj_la1[34] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void count() throws ParseException {
                       /*@bgen(jjtree) COUNT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCOUNT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(COUNT);
      aggregate_path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void avg() throws ParseException {
                       /*@bgen(jjtree) AVERAGE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTAVERAGE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(AVG);
      aggregate_path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void max() throws ParseException {
                   /*@bgen(jjtree) MAX */
  SimpleNode jjtn000 = new SimpleNode(this, JJTMAX);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(MAX);
      aggregate_path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void min() throws ParseException {
                   /*@bgen(jjtree) MIN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTMIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(MIN);
      aggregate_path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void sum() throws ParseException {
                   /*@bgen(jjtree) SUM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSUM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SUM);
      aggregate_path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void where_clause() throws ParseException {
                              /*@bgen(jjtree) WHERE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTWHERE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(WHERE);
      conditional_expression();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void groupby_clause() throws ParseException {
                                  /*@bgen(jjtree) GROUPBY */
  SimpleNode jjtn000 = new SimpleNode(this, JJTGROUPBY);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(GROUP);
      jj_consume_token(BY);
      groupby_item();
      label_10:
      while (true) {
        if (jj_2_22(2)) {
          ;
        } else {
          break label_10;
        }
        jj_consume_token(COMMA);
        groupby_item();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void groupby_item() throws ParseException {
    if (jj_2_23(2147483647)) {
      path();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case IDENTIFIER:
        identification_variable();
        break;
      case CONCAT:
      case SUBSTRING:
      case TRIM:
      case LOWER:
      case UPPER:
      case LENGTH:
      case LOCATE:
      case ABS:
      case SQRT:
      case MOD:
      case SIZE:
      case CURRENT_DATE:
      case CURRENT_TIME:
      case CURRENT_TIMESTAMP:
        groupby_extension();
        break;
      default:
        jj_la1[35] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void groupby_extension() throws ParseException {
                                              /*@bgen(jjtree) GROUPBYEXTENSION */
  SimpleNode jjtn000 = new SimpleNode(this, JJTGROUPBYEXTENSION);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      scalar_function();
    } catch (Throwable jjte000) {
      if (jjtc000) {
        jjtree.clearNodeScope(jjtn000);
        jjtc000 = false;
      } else {
        jjtree.popNode();
      }
      if (jjte000 instanceof RuntimeException) {
        {if (true) throw (RuntimeException)jjte000;}
      }
      if (jjte000 instanceof ParseException) {
        {if (true) throw (ParseException)jjte000;}
      }
      {if (true) throw (Error)jjte000;}
    } finally {
      if (jjtc000) {
        jjtree.closeNodeScope(jjtn000, true);
      }
    }
  }

  final public void having_clause() throws ParseException {
                                /*@bgen(jjtree) HAVING */
  SimpleNode jjtn000 = new SimpleNode(this, JJTHAVING);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(HAVING);
      conditional_expression();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void subquery() throws ParseException {
                              /*@bgen(jjtree) SUBSELECT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSUBSELECT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      simple_select_clause();
      subquery_from_clause();
      if (jj_2_24(2147483647)) {
        where_clause();
      } else {
        ;
      }
      if (jj_2_25(2147483647)) {
        groupby_clause();
      } else {
        ;
      }
      if (jj_2_26(2147483647)) {
        having_clause();
      } else {
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

/* changed to eliminate left recursion */
  final public void conditional_expression() throws ParseException {
    conditional_term();
    label_11:
    while (true) {
      if (jj_2_27(2)) {
        ;
      } else {
        break label_11;
      }
      jj_consume_token(OR);
                                                 SimpleNode jjtn001 = new SimpleNode(this, JJTOR);
                                                 boolean jjtc001 = true;
                                                 jjtree.openNodeScope(jjtn001);
      try {
        conditional_expression();
      } catch (Throwable jjte001) {
                                                 if (jjtc001) {
                                                   jjtree.clearNodeScope(jjtn001);
                                                   jjtc001 = false;
                                                 } else {
                                                   jjtree.popNode();
                                                 }
                                                 if (jjte001 instanceof RuntimeException) {
                                                   {if (true) throw (RuntimeException)jjte001;}
                                                 }
                                                 if (jjte001 instanceof ParseException) {
                                                   {if (true) throw (ParseException)jjte001;}
                                                 }
                                                 {if (true) throw (Error)jjte001;}
      } finally {
                                                 if (jjtc001) {
                                                   jjtree.closeNodeScope(jjtn001,  2);
                                                 }
      }
    }
  }

/* changed to eliminate left recursion */
  final public void conditional_term() throws ParseException {
    conditional_factor();
    label_12:
    while (true) {
      if (jj_2_28(2)) {
        ;
      } else {
        break label_12;
      }
      jj_consume_token(AND);
                                                    SimpleNode jjtn001 = new SimpleNode(this, JJTAND);
                                                    boolean jjtc001 = true;
                                                    jjtree.openNodeScope(jjtn001);
      try {
        conditional_term();
      } catch (Throwable jjte001) {
                                                    if (jjtc001) {
                                                      jjtree.clearNodeScope(jjtn001);
                                                      jjtc001 = false;
                                                    } else {
                                                      jjtree.popNode();
                                                    }
                                                    if (jjte001 instanceof RuntimeException) {
                                                      {if (true) throw (RuntimeException)jjte001;}
                                                    }
                                                    if (jjte001 instanceof ParseException) {
                                                      {if (true) throw (ParseException)jjte001;}
                                                    }
                                                    {if (true) throw (Error)jjte001;}
      } finally {
                                                    if (jjtc001) {
                                                      jjtree.closeNodeScope(jjtn001,  2);
                                                    }
      }
    }
  }

  final public void conditional_factor() throws ParseException {
    if (jj_2_29(2147483647)) {
      jj_consume_token(NOT);
                 SimpleNode jjtn001 = new SimpleNode(this, JJTNOT);
                 boolean jjtc001 = true;
                 jjtree.openNodeScope(jjtn001);
      try {
        conditional_primary();
      } catch (Throwable jjte001) {
                 if (jjtc001) {
                   jjtree.clearNodeScope(jjtn001);
                   jjtc001 = false;
                 } else {
                   jjtree.popNode();
                 }
                 if (jjte001 instanceof RuntimeException) {
                   {if (true) throw (RuntimeException)jjte001;}
                 }
                 if (jjte001 instanceof ParseException) {
                   {if (true) throw (ParseException)jjte001;}
                 }
                 {if (true) throw (Error)jjte001;}
      } finally {
                 if (jjtc001) {
                   jjtree.closeNodeScope(jjtn001, true);
                 }
      }
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
      case NEW:
      case ALL:
      case ANY:
      case EXISTS:
      case SOME:
      case EMPTY:
      case ASC:
      case DESC:
      case ORDER:
      case BY:
      case IS:
      case MEMBER:
      case OF:
      case LIKE:
      case ESCAPE:
      case BETWEEN:
      case NULL:
      case AVG:
      case MIN:
      case MAX:
      case SUM:
      case COUNT:
      case OR:
      case AND:
      case NOT:
      case CONCAT:
      case SUBSTRING:
      case TRIM:
      case LOWER:
      case UPPER:
      case LEADING:
      case TRAILING:
      case BOTH:
      case LENGTH:
      case LOCATE:
      case ABS:
      case SQRT:
      case MOD:
      case SIZE:
      case CURRENT_DATE:
      case CURRENT_TIME:
      case CURRENT_TIMESTAMP:
      case SELECT:
      case DISTINCT:
      case FROM:
      case UPDATE:
      case DELETE:
      case WHERE:
      case GROUP:
      case HAVING:
      case AS:
      case LEFT:
      case OUTER:
      case INNER:
      case JOIN:
      case FETCH:
      case IN:
      case SET:
      case OBJECT:
      case INTEGER_LITERAL:
      case DECIMAL_LITERAL:
      case STRING_LITERAL:
      case BOOLEAN_LITERAL:
      case IDENTIFIER:
      case 85:
      case 87:
      case 88:
        conditional_primary();
        break;
      default:
        jj_la1[36] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void conditional_primary() throws ParseException {
    if (jj_2_30(2147483647)) {
      simple_cond_expression();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case 85:
        jj_consume_token(85);
        conditional_expression();
        jj_consume_token(86);
        break;
      default:
        jj_la1[37] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void simple_cond_expression() throws ParseException {
    if (jj_2_31(2147483647)) {
      exists_expression();
    } else if (jj_2_32(2147483647)) {
      comparison_expression();
    } else if (jj_2_33(2147483647)) {
      between_expression();
    } else if (jj_2_34(2147483647)) {
      like_expression();
    } else if (jj_2_35(2147483647)) {
      in_expression();
    } else if (jj_2_36(2147483647)) {
      null_comparison_expression();
    } else if (jj_2_37(2147483647)) {
      empty_collection_comparison_expression();
    } else if (jj_2_38(2147483647)) {
      collection_member_expression();
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void between_expression() throws ParseException {
                                      /*@bgen(jjtree) BETWEEN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTBETWEEN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      if (jj_2_39(6)) {
        arithmetic_expression();
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NOT:
          jj_consume_token(NOT);
                         jjtn000.not = true;
          break;
        default:
          jj_la1[38] = jj_gen;
          ;
        }
        jj_consume_token(BETWEEN);
        arithmetic_expression();
        jj_consume_token(AND);
        arithmetic_expression();
      } else if (jj_2_40(6)) {
        string_expression();
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NOT:
          jj_consume_token(NOT);
                         jjtn000.not = true;
          break;
        default:
          jj_la1[39] = jj_gen;
          ;
        }
        jj_consume_token(BETWEEN);
        string_expression();
        jj_consume_token(AND);
        string_expression();
      } else if (jj_2_41(6)) {
        datetime_expression();
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NOT:
          jj_consume_token(NOT);
                         jjtn000.not = true;
          break;
        default:
          jj_la1[40] = jj_gen;
          ;
        }
        jj_consume_token(BETWEEN);
        datetime_expression();
        jj_consume_token(AND);
        datetime_expression();
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void in_expression() throws ParseException {
                            /*@bgen(jjtree) IN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTIN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      path();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                                      jjtn000.not = true;
        break;
      default:
        jj_la1[41] = jj_gen;
        ;
      }
      jj_consume_token(IN);
      jj_consume_token(85);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
      case INTEGER_LITERAL:
      case DECIMAL_LITERAL:
      case STRING_LITERAL:
      case BOOLEAN_LITERAL:
      case 87:
      case 88:
        literal_or_param();
        label_13:
        while (true) {
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case COMMA:
            ;
            break;
          default:
            jj_la1[42] = jj_gen;
            break label_13;
          }
          jj_consume_token(COMMA);
          literal_or_param();
        }
        break;
      case SELECT:
        subquery();
        break;
      default:
        jj_la1[43] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void literal_or_param() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case PLUS:
    case MINUS:
    case INTEGER_LITERAL:
    case DECIMAL_LITERAL:
      numeric_literal();
      break;
    case STRING_LITERAL:
      string_literal();
      break;
    case BOOLEAN_LITERAL:
      boolean_literal();
      break;
    case 87:
    case 88:
      input_parameter();
      break;
    default:
      jj_la1[44] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void like_expression() throws ParseException {
                                /*@bgen(jjtree) LIKE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLIKE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      string_expression();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                                     jjtn000.not = true;
        break;
      default:
        jj_la1[45] = jj_gen;
        ;
      }
      jj_consume_token(LIKE);
      pattern_value();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void null_comparison_expression() throws ParseException {
                                             /*@bgen(jjtree) ISNULL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTISNULL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case 87:
      case 88:
        input_parameter();
        break;
      case IDENTIFIER:
        path();
        break;
      case AVG:
      case MIN:
      case MAX:
      case SUM:
      case COUNT:
        aggregate_select_expression();
        break;
      default:
        jj_la1[46] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
      jj_consume_token(IS);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                      jjtn000.not = true;
        break;
      default:
        jj_la1[47] = jj_gen;
        ;
      }
      jj_consume_token(NULL);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void empty_collection_comparison_expression() throws ParseException {
                                                          /*@bgen(jjtree) ISEMPTY */
  SimpleNode jjtn000 = new SimpleNode(this, JJTISEMPTY);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      path();
      jj_consume_token(IS);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                             jjtn000.not = true;
        break;
      default:
        jj_la1[48] = jj_gen;
        ;
      }
      jj_consume_token(EMPTY);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void collection_member_expression() throws ParseException {
                                                 /*@bgen(jjtree) MEMBEROF */
  SimpleNode jjtn000 = new SimpleNode(this, JJTMEMBEROF);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      if (jj_2_42(2147483647)) {
        path();
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case 87:
        case 88:
          input_parameter();
          break;
        case NEW:
        case ALL:
        case ANY:
        case EXISTS:
        case SOME:
        case EMPTY:
        case ASC:
        case DESC:
        case ORDER:
        case BY:
        case IS:
        case MEMBER:
        case OF:
        case LIKE:
        case ESCAPE:
        case BETWEEN:
        case NULL:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case OR:
        case AND:
        case NOT:
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case LEADING:
        case TRAILING:
        case BOTH:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case SELECT:
        case DISTINCT:
        case FROM:
        case UPDATE:
        case DELETE:
        case WHERE:
        case GROUP:
        case HAVING:
        case AS:
        case LEFT:
        case OUTER:
        case INNER:
        case JOIN:
        case FETCH:
        case IN:
        case SET:
        case OBJECT:
        case IDENTIFIER:
          path_component();
          break;
        default:
          jj_la1[49] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                 jjtn000.not = true;
        break;
      default:
        jj_la1[50] = jj_gen;
        ;
      }
      jj_consume_token(MEMBER);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case OF:
        jj_consume_token(OF);
        break;
      default:
        jj_la1[51] = jj_gen;
        ;
      }
      path();
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void exists_expression() throws ParseException {
                                    /*@bgen(jjtree) EXISTS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTEXISTS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NOT:
        jj_consume_token(NOT);
                 jjtn000.not = true;
        break;
      default:
        jj_la1[52] = jj_gen;
        ;
      }
      jj_consume_token(EXISTS);
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void all_or_any_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ANY:
      any_expression();
      break;
    case SOME:
      some_expression();
      break;
    case ALL:
      all_expression();
      break;
    default:
      jj_la1[53] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void any_expression() throws ParseException {
                              /*@bgen(jjtree) ANY */
  SimpleNode jjtn000 = new SimpleNode(this, JJTANY);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(ANY);
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void some_expression() throws ParseException {
                               /*@bgen(jjtree) ANY */
  SimpleNode jjtn000 = new SimpleNode(this, JJTANY);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SOME);
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void all_expression() throws ParseException {
                              /*@bgen(jjtree) ALL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTALL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(ALL);
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void comparison_expression() throws ParseException {
    if (jj_2_43(2147483647)) {
      arithmetic_comp();
    } else if (jj_2_44(2147483647)) {
      string_comp();
    } else if (jj_2_45(2147483647)) {
      boolean_comp();
    } else if (jj_2_46(2147483647)) {
      enum_comp();
    } else if (jj_2_47(2147483647)) {
      datetime_comp();
    } else if (jj_2_48(2147483647)) {
      entity_comp();
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void string_comp() throws ParseException {
    string_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                        SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                        boolean jjtc001 = true;
                        jjtree.openNodeScope(jjtn001);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[54] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte001) {
                        if (jjtc001) {
                          jjtree.clearNodeScope(jjtn001);
                          jjtc001 = false;
                        } else {
                          jjtree.popNode();
                        }
                        if (jjte001 instanceof RuntimeException) {
                          {if (true) throw (RuntimeException)jjte001;}
                        }
                        if (jjte001 instanceof ParseException) {
                          {if (true) throw (ParseException)jjte001;}
                        }
                        {if (true) throw (Error)jjte001;}
      } finally {
                        if (jjtc001) {
                          jjtree.closeNodeScope(jjtn001,  2);
                        }
      }
      break;
    case NE:
      jj_consume_token(NE);
                          SimpleNode jjtn002 = new SimpleNode(this, JJTNOTEQUALS);
                          boolean jjtc002 = true;
                          jjtree.openNodeScope(jjtn002);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[55] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte002) {
                          if (jjtc002) {
                            jjtree.clearNodeScope(jjtn002);
                            jjtc002 = false;
                          } else {
                            jjtree.popNode();
                          }
                          if (jjte002 instanceof RuntimeException) {
                            {if (true) throw (RuntimeException)jjte002;}
                          }
                          if (jjte002 instanceof ParseException) {
                            {if (true) throw (ParseException)jjte002;}
                          }
                          {if (true) throw (Error)jjte002;}
      } finally {
                          if (jjtc002) {
                            jjtree.closeNodeScope(jjtn002,  2);
                          }
      }
      break;
    case GT:
      jj_consume_token(GT);
                          SimpleNode jjtn003 = new SimpleNode(this, JJTGREATERTHAN);
                          boolean jjtc003 = true;
                          jjtree.openNodeScope(jjtn003);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[56] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte003) {
                          if (jjtc003) {
                            jjtree.clearNodeScope(jjtn003);
                            jjtc003 = false;
                          } else {
                            jjtree.popNode();
                          }
                          if (jjte003 instanceof RuntimeException) {
                            {if (true) throw (RuntimeException)jjte003;}
                          }
                          if (jjte003 instanceof ParseException) {
                            {if (true) throw (ParseException)jjte003;}
                          }
                          {if (true) throw (Error)jjte003;}
      } finally {
                          if (jjtc003) {
                            jjtree.closeNodeScope(jjtn003,  2);
                          }
      }
      break;
    case GE:
      jj_consume_token(GE);
                          SimpleNode jjtn004 = new SimpleNode(this, JJTGREATEROREQUAL);
                          boolean jjtc004 = true;
                          jjtree.openNodeScope(jjtn004);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[57] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte004) {
                          if (jjtc004) {
                            jjtree.clearNodeScope(jjtn004);
                            jjtc004 = false;
                          } else {
                            jjtree.popNode();
                          }
                          if (jjte004 instanceof RuntimeException) {
                            {if (true) throw (RuntimeException)jjte004;}
                          }
                          if (jjte004 instanceof ParseException) {
                            {if (true) throw (ParseException)jjte004;}
                          }
                          {if (true) throw (Error)jjte004;}
      } finally {
                          if (jjtc004) {
                            jjtree.closeNodeScope(jjtn004,  2);
                          }
      }
      break;
    case LT:
      jj_consume_token(LT);
                          SimpleNode jjtn005 = new SimpleNode(this, JJTLESSTHAN);
                          boolean jjtc005 = true;
                          jjtree.openNodeScope(jjtn005);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[58] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte005) {
                          if (jjtc005) {
                            jjtree.clearNodeScope(jjtn005);
                            jjtc005 = false;
                          } else {
                            jjtree.popNode();
                          }
                          if (jjte005 instanceof RuntimeException) {
                            {if (true) throw (RuntimeException)jjte005;}
                          }
                          if (jjte005 instanceof ParseException) {
                            {if (true) throw (ParseException)jjte005;}
                          }
                          {if (true) throw (Error)jjte005;}
      } finally {
                          if (jjtc005) {
                            jjtree.closeNodeScope(jjtn005,  2);
                          }
      }
      break;
    case LE:
      jj_consume_token(LE);
                          SimpleNode jjtn006 = new SimpleNode(this, JJTLESSOREQUAL);
                          boolean jjtc006 = true;
                          jjtree.openNodeScope(jjtn006);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
        case STRING_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          string_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[59] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte006) {
                          if (jjtc006) {
                            jjtree.clearNodeScope(jjtn006);
                            jjtc006 = false;
                          } else {
                            jjtree.popNode();
                          }
                          if (jjte006 instanceof RuntimeException) {
                            {if (true) throw (RuntimeException)jjte006;}
                          }
                          if (jjte006 instanceof ParseException) {
                            {if (true) throw (ParseException)jjte006;}
                          }
                          {if (true) throw (Error)jjte006;}
      } finally {
                          if (jjtc006) {
                            jjtree.closeNodeScope(jjtn006,  2);
                          }
      }
      break;
    default:
      jj_la1[60] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void boolean_comp() throws ParseException {
    boolean_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                boolean jjtc001 = true;
                jjtree.openNodeScope(jjtn001);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case BOOLEAN_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          boolean_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[61] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte001) {
                if (jjtc001) {
                  jjtree.clearNodeScope(jjtn001);
                  jjtc001 = false;
                } else {
                  jjtree.popNode();
                }
                if (jjte001 instanceof RuntimeException) {
                  {if (true) throw (RuntimeException)jjte001;}
                }
                if (jjte001 instanceof ParseException) {
                  {if (true) throw (ParseException)jjte001;}
                }
                {if (true) throw (Error)jjte001;}
      } finally {
                if (jjtc001) {
                  jjtree.closeNodeScope(jjtn001,  2);
                }
      }
      break;
    case NE:
      jj_consume_token(NE);
                  SimpleNode jjtn002 = new SimpleNode(this, JJTNOTEQUALS);
                  boolean jjtc002 = true;
                  jjtree.openNodeScope(jjtn002);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case BOOLEAN_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          boolean_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[62] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte002) {
                  if (jjtc002) {
                    jjtree.clearNodeScope(jjtn002);
                    jjtc002 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte002 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte002;}
                  }
                  if (jjte002 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte002;}
                  }
                  {if (true) throw (Error)jjte002;}
      } finally {
                  if (jjtc002) {
                    jjtree.closeNodeScope(jjtn002,  2);
                  }
      }
      break;
    default:
      jj_la1[63] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void enum_comp() throws ParseException {
    enum_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                boolean jjtc001 = true;
                jjtree.openNodeScope(jjtn001);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          enum_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[64] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte001) {
                if (jjtc001) {
                  jjtree.clearNodeScope(jjtn001);
                  jjtc001 = false;
                } else {
                  jjtree.popNode();
                }
                if (jjte001 instanceof RuntimeException) {
                  {if (true) throw (RuntimeException)jjte001;}
                }
                if (jjte001 instanceof ParseException) {
                  {if (true) throw (ParseException)jjte001;}
                }
                {if (true) throw (Error)jjte001;}
      } finally {
                if (jjtc001) {
                  jjtree.closeNodeScope(jjtn001,  2);
                }
      }
      break;
    case NE:
      jj_consume_token(NE);
                  SimpleNode jjtn002 = new SimpleNode(this, JJTNOTEQUALS);
                  boolean jjtc002 = true;
                  jjtree.openNodeScope(jjtn002);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          enum_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[65] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte002) {
                  if (jjtc002) {
                    jjtree.clearNodeScope(jjtn002);
                    jjtc002 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte002 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte002;}
                  }
                  if (jjte002 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte002;}
                  }
                  {if (true) throw (Error)jjte002;}
      } finally {
                  if (jjtc002) {
                    jjtree.closeNodeScope(jjtn002,  2);
                  }
      }
      break;
    default:
      jj_la1[66] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void entity_comp() throws ParseException {
    entity_bean_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                 SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                 boolean jjtc001 = true;
                 jjtree.openNodeScope(jjtn001);
      try {
        if (jj_2_49(2147483647)) {
          all_or_any_expression();
        } else {
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case NEW:
          case ALL:
          case ANY:
          case EXISTS:
          case SOME:
          case EMPTY:
          case ASC:
          case DESC:
          case ORDER:
          case BY:
          case IS:
          case MEMBER:
          case OF:
          case LIKE:
          case ESCAPE:
          case BETWEEN:
          case NULL:
          case AVG:
          case MIN:
          case MAX:
          case SUM:
          case COUNT:
          case OR:
          case AND:
          case NOT:
          case CONCAT:
          case SUBSTRING:
          case TRIM:
          case LOWER:
          case UPPER:
          case LEADING:
          case TRAILING:
          case BOTH:
          case LENGTH:
          case LOCATE:
          case ABS:
          case SQRT:
          case MOD:
          case SIZE:
          case CURRENT_DATE:
          case CURRENT_TIME:
          case CURRENT_TIMESTAMP:
          case SELECT:
          case DISTINCT:
          case FROM:
          case UPDATE:
          case DELETE:
          case WHERE:
          case GROUP:
          case HAVING:
          case AS:
          case LEFT:
          case OUTER:
          case INNER:
          case JOIN:
          case FETCH:
          case IN:
          case SET:
          case OBJECT:
          case IDENTIFIER:
          case 87:
          case 88:
            entity_bean_expression();
            break;
          default:
            jj_la1[67] = jj_gen;
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
      } catch (Throwable jjte001) {
                 if (jjtc001) {
                   jjtree.clearNodeScope(jjtn001);
                   jjtc001 = false;
                 } else {
                   jjtree.popNode();
                 }
                 if (jjte001 instanceof RuntimeException) {
                   {if (true) throw (RuntimeException)jjte001;}
                 }
                 if (jjte001 instanceof ParseException) {
                   {if (true) throw (ParseException)jjte001;}
                 }
                 {if (true) throw (Error)jjte001;}
      } finally {
                 if (jjtc001) {
                   jjtree.closeNodeScope(jjtn001,  2);
                 }
      }
      break;
    case NE:
      jj_consume_token(NE);
                   SimpleNode jjtn002 = new SimpleNode(this, JJTNOTEQUALS);
                   boolean jjtc002 = true;
                   jjtree.openNodeScope(jjtn002);
      try {
        if (jj_2_50(2147483647)) {
          all_or_any_expression();
        } else {
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case NEW:
          case ALL:
          case ANY:
          case EXISTS:
          case SOME:
          case EMPTY:
          case ASC:
          case DESC:
          case ORDER:
          case BY:
          case IS:
          case MEMBER:
          case OF:
          case LIKE:
          case ESCAPE:
          case BETWEEN:
          case NULL:
          case AVG:
          case MIN:
          case MAX:
          case SUM:
          case COUNT:
          case OR:
          case AND:
          case NOT:
          case CONCAT:
          case SUBSTRING:
          case TRIM:
          case LOWER:
          case UPPER:
          case LEADING:
          case TRAILING:
          case BOTH:
          case LENGTH:
          case LOCATE:
          case ABS:
          case SQRT:
          case MOD:
          case SIZE:
          case CURRENT_DATE:
          case CURRENT_TIME:
          case CURRENT_TIMESTAMP:
          case SELECT:
          case DISTINCT:
          case FROM:
          case UPDATE:
          case DELETE:
          case WHERE:
          case GROUP:
          case HAVING:
          case AS:
          case LEFT:
          case OUTER:
          case INNER:
          case JOIN:
          case FETCH:
          case IN:
          case SET:
          case OBJECT:
          case IDENTIFIER:
          case 87:
          case 88:
            entity_bean_expression();
            break;
          default:
            jj_la1[68] = jj_gen;
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
      } catch (Throwable jjte002) {
                   if (jjtc002) {
                     jjtree.clearNodeScope(jjtn002);
                     jjtc002 = false;
                   } else {
                     jjtree.popNode();
                   }
                   if (jjte002 instanceof RuntimeException) {
                     {if (true) throw (RuntimeException)jjte002;}
                   }
                   if (jjte002 instanceof ParseException) {
                     {if (true) throw (ParseException)jjte002;}
                   }
                   {if (true) throw (Error)jjte002;}
      } finally {
                   if (jjtc002) {
                     jjtree.closeNodeScope(jjtn002,  2);
                   }
      }
      break;
    default:
      jj_la1[69] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void arithmetic_comp() throws ParseException {
    arithmetic_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                boolean jjtc001 = true;
                jjtree.openNodeScope(jjtn001);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[70] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte001) {
                if (jjtc001) {
                  jjtree.clearNodeScope(jjtn001);
                  jjtc001 = false;
                } else {
                  jjtree.popNode();
                }
                if (jjte001 instanceof RuntimeException) {
                  {if (true) throw (RuntimeException)jjte001;}
                }
                if (jjte001 instanceof ParseException) {
                  {if (true) throw (ParseException)jjte001;}
                }
                {if (true) throw (Error)jjte001;}
      } finally {
                if (jjtc001) {
                  jjtree.closeNodeScope(jjtn001,  2);
                }
      }
      break;
    case GT:
      jj_consume_token(GT);
                  SimpleNode jjtn002 = new SimpleNode(this, JJTGREATERTHAN);
                  boolean jjtc002 = true;
                  jjtree.openNodeScope(jjtn002);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[71] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte002) {
                  if (jjtc002) {
                    jjtree.clearNodeScope(jjtn002);
                    jjtc002 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte002 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte002;}
                  }
                  if (jjte002 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte002;}
                  }
                  {if (true) throw (Error)jjte002;}
      } finally {
                  if (jjtc002) {
                    jjtree.closeNodeScope(jjtn002,  2);
                  }
      }
      break;
    case GE:
      jj_consume_token(GE);
                  SimpleNode jjtn003 = new SimpleNode(this, JJTGREATEROREQUAL);
                  boolean jjtc003 = true;
                  jjtree.openNodeScope(jjtn003);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[72] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte003) {
                  if (jjtc003) {
                    jjtree.clearNodeScope(jjtn003);
                    jjtc003 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte003 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte003;}
                  }
                  if (jjte003 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte003;}
                  }
                  {if (true) throw (Error)jjte003;}
      } finally {
                  if (jjtc003) {
                    jjtree.closeNodeScope(jjtn003,  2);
                  }
      }
      break;
    case LT:
      jj_consume_token(LT);
                  SimpleNode jjtn004 = new SimpleNode(this, JJTLESSTHAN);
                  boolean jjtc004 = true;
                  jjtree.openNodeScope(jjtn004);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[73] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte004) {
                  if (jjtc004) {
                    jjtree.clearNodeScope(jjtn004);
                    jjtc004 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte004 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte004;}
                  }
                  if (jjte004 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte004;}
                  }
                  {if (true) throw (Error)jjte004;}
      } finally {
                  if (jjtc004) {
                    jjtree.closeNodeScope(jjtn004,  2);
                  }
      }
      break;
    case LE:
      jj_consume_token(LE);
                  SimpleNode jjtn005 = new SimpleNode(this, JJTLESSOREQUAL);
                  boolean jjtc005 = true;
                  jjtree.openNodeScope(jjtn005);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[74] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte005) {
                  if (jjtc005) {
                    jjtree.clearNodeScope(jjtn005);
                    jjtc005 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte005 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte005;}
                  }
                  if (jjte005 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte005;}
                  }
                  {if (true) throw (Error)jjte005;}
      } finally {
                  if (jjtc005) {
                    jjtree.closeNodeScope(jjtn005,  2);
                  }
      }
      break;
    case NE:
      jj_consume_token(NE);
                  SimpleNode jjtn006 = new SimpleNode(this, JJTNOTEQUALS);
                  boolean jjtc006 = true;
                  jjtree.openNodeScope(jjtn006);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
        case MINUS:
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
        case SELECT:
        case INTEGER_LITERAL:
        case DECIMAL_LITERAL:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          arithmetic_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[75] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte006) {
                  if (jjtc006) {
                    jjtree.clearNodeScope(jjtn006);
                    jjtc006 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte006 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte006;}
                  }
                  if (jjte006 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte006;}
                  }
                  {if (true) throw (Error)jjte006;}
      } finally {
                  if (jjtc006) {
                    jjtree.closeNodeScope(jjtn006,  2);
                  }
      }
      break;
    default:
      jj_la1[76] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void datetime_comp() throws ParseException {
    datetime_expression();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EQ:
      jj_consume_token(EQ);
                SimpleNode jjtn001 = new SimpleNode(this, JJTEQUALS);
                boolean jjtc001 = true;
                jjtree.openNodeScope(jjtn001);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[77] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte001) {
                if (jjtc001) {
                  jjtree.clearNodeScope(jjtn001);
                  jjtc001 = false;
                } else {
                  jjtree.popNode();
                }
                if (jjte001 instanceof RuntimeException) {
                  {if (true) throw (RuntimeException)jjte001;}
                }
                if (jjte001 instanceof ParseException) {
                  {if (true) throw (ParseException)jjte001;}
                }
                {if (true) throw (Error)jjte001;}
      } finally {
                if (jjtc001) {
                  jjtree.closeNodeScope(jjtn001,  2);
                }
      }
      break;
    case GT:
      jj_consume_token(GT);
                  SimpleNode jjtn002 = new SimpleNode(this, JJTGREATERTHAN);
                  boolean jjtc002 = true;
                  jjtree.openNodeScope(jjtn002);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[78] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte002) {
                  if (jjtc002) {
                    jjtree.clearNodeScope(jjtn002);
                    jjtc002 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte002 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte002;}
                  }
                  if (jjte002 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte002;}
                  }
                  {if (true) throw (Error)jjte002;}
      } finally {
                  if (jjtc002) {
                    jjtree.closeNodeScope(jjtn002,  2);
                  }
      }
      break;
    case GE:
      jj_consume_token(GE);
                  SimpleNode jjtn003 = new SimpleNode(this, JJTGREATEROREQUAL);
                  boolean jjtc003 = true;
                  jjtree.openNodeScope(jjtn003);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[79] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte003) {
                  if (jjtc003) {
                    jjtree.clearNodeScope(jjtn003);
                    jjtc003 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte003 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte003;}
                  }
                  if (jjte003 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte003;}
                  }
                  {if (true) throw (Error)jjte003;}
      } finally {
                  if (jjtc003) {
                    jjtree.closeNodeScope(jjtn003,  2);
                  }
      }
      break;
    case LT:
      jj_consume_token(LT);
                  SimpleNode jjtn004 = new SimpleNode(this, JJTLESSTHAN);
                  boolean jjtc004 = true;
                  jjtree.openNodeScope(jjtn004);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[80] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte004) {
                  if (jjtc004) {
                    jjtree.clearNodeScope(jjtn004);
                    jjtc004 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte004 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte004;}
                  }
                  if (jjte004 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte004;}
                  }
                  {if (true) throw (Error)jjte004;}
      } finally {
                  if (jjtc004) {
                    jjtree.closeNodeScope(jjtn004,  2);
                  }
      }
      break;
    case LE:
      jj_consume_token(LE);
                  SimpleNode jjtn005 = new SimpleNode(this, JJTLESSOREQUAL);
                  boolean jjtc005 = true;
                  jjtree.openNodeScope(jjtn005);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[81] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte005) {
                  if (jjtc005) {
                    jjtree.clearNodeScope(jjtn005);
                    jjtc005 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte005 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte005;}
                  }
                  if (jjte005 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte005;}
                  }
                  {if (true) throw (Error)jjte005;}
      } finally {
                  if (jjtc005) {
                    jjtree.closeNodeScope(jjtn005,  2);
                  }
      }
      break;
    case NE:
      jj_consume_token(NE);
                  SimpleNode jjtn006 = new SimpleNode(this, JJTNOTEQUALS);
                  boolean jjtc006 = true;
                  jjtree.openNodeScope(jjtn006);
      try {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
        case CURRENT_DATE:
        case CURRENT_TIME:
        case CURRENT_TIMESTAMP:
        case IDENTIFIER:
        case 85:
        case 87:
        case 88:
          datetime_expression();
          break;
        case ALL:
        case ANY:
        case SOME:
          all_or_any_expression();
          break;
        default:
          jj_la1[82] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      } catch (Throwable jjte006) {
                  if (jjtc006) {
                    jjtree.clearNodeScope(jjtn006);
                    jjtc006 = false;
                  } else {
                    jjtree.popNode();
                  }
                  if (jjte006 instanceof RuntimeException) {
                    {if (true) throw (RuntimeException)jjte006;}
                  }
                  if (jjte006 instanceof ParseException) {
                    {if (true) throw (ParseException)jjte006;}
                  }
                  {if (true) throw (Error)jjte006;}
      } finally {
                  if (jjtc006) {
                    jjtree.closeNodeScope(jjtn006,  2);
                  }
      }
      break;
    default:
      jj_la1[83] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void scalar_function() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case LENGTH:
    case LOCATE:
    case ABS:
    case SQRT:
    case MOD:
    case SIZE:
      functions_returning_numerics();
      break;
    case CURRENT_DATE:
    case CURRENT_TIME:
    case CURRENT_TIMESTAMP:
      functions_returning_datetime();
      break;
    case CONCAT:
    case SUBSTRING:
    case TRIM:
    case LOWER:
    case UPPER:
      functions_returning_strings();
      break;
    default:
      jj_la1[84] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void arithmetic_value() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      path();
      break;
    case LENGTH:
    case LOCATE:
    case ABS:
    case SQRT:
    case MOD:
    case SIZE:
      functions_returning_numerics();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[85] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

/* changed to eliminate left recursion */
  final public void arithmetic_expression() throws ParseException {
    arithmetic_term();
    label_14:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
        ;
        break;
      default:
        jj_la1[86] = jj_gen;
        break label_14;
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
        jj_consume_token(PLUS);
                           SimpleNode jjtn001 = new SimpleNode(this, JJTADD);
                           boolean jjtc001 = true;
                           jjtree.openNodeScope(jjtn001);
        try {
          arithmetic_expression();
        } catch (Throwable jjte001) {
                           if (jjtc001) {
                             jjtree.clearNodeScope(jjtn001);
                             jjtc001 = false;
                           } else {
                             jjtree.popNode();
                           }
                           if (jjte001 instanceof RuntimeException) {
                             {if (true) throw (RuntimeException)jjte001;}
                           }
                           if (jjte001 instanceof ParseException) {
                             {if (true) throw (ParseException)jjte001;}
                           }
                           {if (true) throw (Error)jjte001;}
        } finally {
                           if (jjtc001) {
                             jjtree.closeNodeScope(jjtn001,  2);
                           }
        }
        break;
      case MINUS:
        jj_consume_token(MINUS);
                             SimpleNode jjtn002 = new SimpleNode(this, JJTSUBTRACT);
                             boolean jjtc002 = true;
                             jjtree.openNodeScope(jjtn002);
        try {
          arithmetic_expression();
        } catch (Throwable jjte002) {
                             if (jjtc002) {
                               jjtree.clearNodeScope(jjtn002);
                               jjtc002 = false;
                             } else {
                               jjtree.popNode();
                             }
                             if (jjte002 instanceof RuntimeException) {
                               {if (true) throw (RuntimeException)jjte002;}
                             }
                             if (jjte002 instanceof ParseException) {
                               {if (true) throw (ParseException)jjte002;}
                             }
                             {if (true) throw (Error)jjte002;}
        } finally {
                             if (jjtc002) {
                               jjtree.closeNodeScope(jjtn002,  2);
                             }
        }
        break;
      default:
        jj_la1[87] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

/* changed to eliminate left recursion */
  final public void arithmetic_term() throws ParseException {
    arithmetic_factor();
    label_15:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case TIMES:
      case DIV:
        ;
        break;
      default:
        jj_la1[88] = jj_gen;
        break label_15;
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case TIMES:
        jj_consume_token(TIMES);
                            SimpleNode jjtn001 = new SimpleNode(this, JJTMULTIPLY);
                            boolean jjtc001 = true;
                            jjtree.openNodeScope(jjtn001);
        try {
          arithmetic_term();
        } catch (Throwable jjte001) {
                            if (jjtc001) {
                              jjtree.clearNodeScope(jjtn001);
                              jjtc001 = false;
                            } else {
                              jjtree.popNode();
                            }
                            if (jjte001 instanceof RuntimeException) {
                              {if (true) throw (RuntimeException)jjte001;}
                            }
                            if (jjte001 instanceof ParseException) {
                              {if (true) throw (ParseException)jjte001;}
                            }
                            {if (true) throw (Error)jjte001;}
        } finally {
                            if (jjtc001) {
                              jjtree.closeNodeScope(jjtn001,  2);
                            }
        }
        break;
      case DIV:
        jj_consume_token(DIV);
                           SimpleNode jjtn002 = new SimpleNode(this, JJTDIVIDE);
                           boolean jjtc002 = true;
                           jjtree.openNodeScope(jjtn002);
        try {
          arithmetic_term();
        } catch (Throwable jjte002) {
                           if (jjtc002) {
                             jjtree.clearNodeScope(jjtn002);
                             jjtc002 = false;
                           } else {
                             jjtree.popNode();
                           }
                           if (jjte002 instanceof RuntimeException) {
                             {if (true) throw (RuntimeException)jjte002;}
                           }
                           if (jjte002 instanceof ParseException) {
                             {if (true) throw (ParseException)jjte002;}
                           }
                           {if (true) throw (Error)jjte002;}
        } finally {
                           if (jjtc002) {
                             jjtree.closeNodeScope(jjtn002,  2);
                           }
        }
        break;
      default:
        jj_la1[89] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void arithmetic_factor() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case PLUS:
    case MINUS:
    case INTEGER_LITERAL:
    case DECIMAL_LITERAL:
      numeric_literal();
      break;
    case 87:
    case 88:
      input_parameter();
      break;
    case IDENTIFIER:
      path();
      break;
    default:
      jj_la1[90] = jj_gen;
      if (jj_2_51(2)) {
        jj_consume_token(85);
        arithmetic_expression();
        jj_consume_token(86);
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case LENGTH:
        case LOCATE:
        case ABS:
        case SQRT:
        case MOD:
        case SIZE:
          functions_returning_numerics();
          break;
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
          aggregate_select_expression();
          break;
        case SELECT:
          subquery();
          break;
        default:
          jj_la1[91] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    }
  }

  final public void negative() throws ParseException {
                             /*@bgen(jjtree) NEGATIVE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTNEGATIVE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(MINUS);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void string_value() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      path();
      break;
    case CONCAT:
    case SUBSTRING:
    case TRIM:
    case LOWER:
    case UPPER:
      functions_returning_strings();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[92] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void string_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 87:
    case 88:
      input_parameter();
      break;
    case CONCAT:
    case SUBSTRING:
    case TRIM:
    case LOWER:
    case UPPER:
    case STRING_LITERAL:
    case IDENTIFIER:
    case 85:
      string_primary();
      break;
    default:
      jj_la1[93] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void string_primary() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case STRING_LITERAL:
      string_literal();
      break;
    case IDENTIFIER:
      path();
      break;
    default:
      jj_la1[94] = jj_gen;
      if (jj_2_52(2)) {
        jj_consume_token(85);
        string_expression();
        jj_consume_token(86);
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case CONCAT:
        case SUBSTRING:
        case TRIM:
        case LOWER:
        case UPPER:
          functions_returning_strings();
          break;
        default:
          jj_la1[95] = jj_gen;
          if (jj_2_53(2)) {
            jj_consume_token(85);
            subquery();
            jj_consume_token(86);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
      }
    }
  }

  final public void datetime_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case AVG:
    case MIN:
    case MAX:
    case SUM:
    case COUNT:
    case CURRENT_DATE:
    case CURRENT_TIME:
    case CURRENT_TIMESTAMP:
    case IDENTIFIER:
    case 87:
    case 88:
      datetime_primary();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[96] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void datetime_primary() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      path();
      break;
    case CURRENT_DATE:
    case CURRENT_TIME:
    case CURRENT_TIMESTAMP:
      functions_returning_datetime();
      break;
    case 87:
    case 88:
      input_parameter();
      break;
    case AVG:
    case MIN:
    case MAX:
    case SUM:
    case COUNT:
      aggregate_select_expression();
      break;
    default:
      jj_la1[97] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void boolean_value() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
      path();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[98] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void boolean_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case BOOLEAN_LITERAL:
    case IDENTIFIER:
    case 87:
    case 88:
      boolean_primary();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[99] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void boolean_primary() throws ParseException {
    if (jj_2_54(2)) {
      path();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case BOOLEAN_LITERAL:
        boolean_literal();
        break;
      case 87:
      case 88:
        input_parameter();
        break;
      default:
        jj_la1[100] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void enum_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case IDENTIFIER:
    case 87:
    case 88:
      enum_primary();
      break;
    case 85:
      jj_consume_token(85);
      subquery();
      jj_consume_token(86);
      break;
    default:
      jj_la1[101] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void enum_primary() throws ParseException {
    if (jj_2_55(2)) {
      path();
    } else if (jj_2_56(2147483647)) {
      enum_literal();
    } else if (jj_2_57(2147483647)) {
      input_parameter();
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void enum_literal() throws ParseException {
          inEnumPath = true;
    path();
          inEnumPath = false;
  }

  final public void entity_bean_value() throws ParseException {
    if (jj_2_58(2147483647)) {
      path();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NEW:
      case ALL:
      case ANY:
      case EXISTS:
      case SOME:
      case EMPTY:
      case ASC:
      case DESC:
      case ORDER:
      case BY:
      case IS:
      case MEMBER:
      case OF:
      case LIKE:
      case ESCAPE:
      case BETWEEN:
      case NULL:
      case AVG:
      case MIN:
      case MAX:
      case SUM:
      case COUNT:
      case OR:
      case AND:
      case NOT:
      case CONCAT:
      case SUBSTRING:
      case TRIM:
      case LOWER:
      case UPPER:
      case LEADING:
      case TRAILING:
      case BOTH:
      case LENGTH:
      case LOCATE:
      case ABS:
      case SQRT:
      case MOD:
      case SIZE:
      case CURRENT_DATE:
      case CURRENT_TIME:
      case CURRENT_TIMESTAMP:
      case SELECT:
      case DISTINCT:
      case FROM:
      case UPDATE:
      case DELETE:
      case WHERE:
      case GROUP:
      case HAVING:
      case AS:
      case LEFT:
      case OUTER:
      case INNER:
      case JOIN:
      case FETCH:
      case IN:
      case SET:
      case OBJECT:
      case IDENTIFIER:
        path_component();
        break;
      default:
        jj_la1[102] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void entity_bean_expression() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 87:
    case 88:
      input_parameter();
      break;
    case NEW:
    case ALL:
    case ANY:
    case EXISTS:
    case SOME:
    case EMPTY:
    case ASC:
    case DESC:
    case ORDER:
    case BY:
    case IS:
    case MEMBER:
    case OF:
    case LIKE:
    case ESCAPE:
    case BETWEEN:
    case NULL:
    case AVG:
    case MIN:
    case MAX:
    case SUM:
    case COUNT:
    case OR:
    case AND:
    case NOT:
    case CONCAT:
    case SUBSTRING:
    case TRIM:
    case LOWER:
    case UPPER:
    case LEADING:
    case TRAILING:
    case BOTH:
    case LENGTH:
    case LOCATE:
    case ABS:
    case SQRT:
    case MOD:
    case SIZE:
    case CURRENT_DATE:
    case CURRENT_TIME:
    case CURRENT_TIMESTAMP:
    case SELECT:
    case DISTINCT:
    case FROM:
    case UPDATE:
    case DELETE:
    case WHERE:
    case GROUP:
    case HAVING:
    case AS:
    case LEFT:
    case OUTER:
    case INNER:
    case JOIN:
    case FETCH:
    case IN:
    case SET:
    case OBJECT:
    case IDENTIFIER:
      entity_bean_value();
      break;
    default:
      jj_la1[103] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void functions_returning_strings() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case CONCAT:
      concat();
      break;
    case SUBSTRING:
      substring();
      break;
    case TRIM:
      trim();
      break;
    case LOWER:
      lower();
      break;
    case UPPER:
      upper();
      break;
    default:
      jj_la1[104] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void concat() throws ParseException {
                         /*@bgen(jjtree) CONCAT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTCONCAT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(CONCAT);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(COMMA);
      string_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void substring() throws ParseException {
                               /*@bgen(jjtree) SUBSTRING */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSUBSTRING);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SUBSTRING);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(COMMA);
      arithmetic_expression();
      jj_consume_token(COMMA);
      arithmetic_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void trim() throws ParseException {
                     /*@bgen(jjtree) TRIM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTTRIM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(TRIM);
      jj_consume_token(85);
      if (jj_2_59(2)) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case LEADING:
        case TRAILING:
        case BOTH:
          trim_specification();
          break;
        default:
          jj_la1[105] = jj_gen;
          ;
        }
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case STRING_LITERAL:
          trim_character();
          break;
        default:
          jj_la1[106] = jj_gen;
          ;
        }
        jj_consume_token(FROM);
      } else {
        ;
      }
      string_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void lower() throws ParseException {
                       /*@bgen(jjtree) LOWER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLOWER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LOWER);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void upper() throws ParseException {
                       /*@bgen(jjtree) UPPER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTUPPER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(UPPER);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void trim_specification() throws ParseException {
    if (jj_2_60(2)) {
                        SimpleNode jjtn001 = new SimpleNode(this, JJTTRIMLEADING);
                        boolean jjtc001 = true;
                        jjtree.openNodeScope(jjtn001);
      try {
        jj_consume_token(LEADING);
      } finally {
                        if (jjtc001) {
                          jjtree.closeNodeScope(jjtn001, true);
                        }
      }
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case TRAILING:
                                                   SimpleNode jjtn002 = new SimpleNode(this, JJTTRIMTRAILING);
                                                   boolean jjtc002 = true;
                                                   jjtree.openNodeScope(jjtn002);
        try {
          jj_consume_token(TRAILING);
        } finally {
                                                   if (jjtc002) {
                                                     jjtree.closeNodeScope(jjtn002, true);
                                                   }
        }
        break;
      case BOTH:
                                                                                SimpleNode jjtn003 = new SimpleNode(this, JJTTRIMBOTH);
                                                                                boolean jjtc003 = true;
                                                                                jjtree.openNodeScope(jjtn003);
        try {
          jj_consume_token(BOTH);
        } finally {
                                                                                if (jjtc003) {
                                                                                  jjtree.closeNodeScope(jjtn003, true);
                                                                                }
        }
        break;
      default:
        jj_la1[107] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void functions_returning_numerics() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case LENGTH:
      length();
      break;
    case LOCATE:
      locate();
      break;
    case ABS:
      abs();
      break;
    case SQRT:
      sqrt();
      break;
    case MOD:
      mod();
      break;
    case SIZE:
      size();
      break;
    default:
      jj_la1[108] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void length() throws ParseException {
                         /*@bgen(jjtree) LENGTH */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLENGTH);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LENGTH);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void locate() throws ParseException {
                         /*@bgen(jjtree) LOCATE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLOCATE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LOCATE);
      jj_consume_token(85);
      string_expression();
      jj_consume_token(COMMA);
      string_expression();
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case COMMA:
        jj_consume_token(COMMA);
        arithmetic_expression();
        break;
      default:
        jj_la1[109] = jj_gen;
        ;
      }
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void abs() throws ParseException {
                   /*@bgen(jjtree) ABS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTABS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(ABS);
      jj_consume_token(85);
      arithmetic_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void sqrt() throws ParseException {
                     /*@bgen(jjtree) SQRT */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSQRT);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SQRT);
      jj_consume_token(85);
      arithmetic_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void mod() throws ParseException {
                   /*@bgen(jjtree) MOD */
  SimpleNode jjtn000 = new SimpleNode(this, JJTMOD);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(MOD);
      jj_consume_token(85);
      arithmetic_expression();
      jj_consume_token(COMMA);
      arithmetic_expression();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void size() throws ParseException {
                     /*@bgen(jjtree) SIZE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSIZE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(SIZE);
      jj_consume_token(85);
      path();
      jj_consume_token(86);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void functions_returning_datetime() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case CURRENT_DATE:
           SimpleNode jjtn001 = new SimpleNode(this, JJTCURRENTDATE);
           boolean jjtc001 = true;
           jjtree.openNodeScope(jjtn001);
      try {
        jj_consume_token(CURRENT_DATE);
      } finally {
           if (jjtc001) {
             jjtree.closeNodeScope(jjtn001, true);
           }
      }
      break;
    case CURRENT_TIME:
             SimpleNode jjtn002 = new SimpleNode(this, JJTCURRENTTIME);
             boolean jjtc002 = true;
             jjtree.openNodeScope(jjtn002);
      try {
        jj_consume_token(CURRENT_TIME);
      } finally {
             if (jjtc002) {
               jjtree.closeNodeScope(jjtn002, true);
             }
      }
      break;
    case CURRENT_TIMESTAMP:
             SimpleNode jjtn003 = new SimpleNode(this, JJTCURRENTTIMESTAMP);
             boolean jjtc003 = true;
             jjtree.openNodeScope(jjtn003);
      try {
        jj_consume_token(CURRENT_TIMESTAMP);
      } finally {
             if (jjtc003) {
               jjtree.closeNodeScope(jjtn003, true);
             }
      }
      break;
    default:
      jj_la1[110] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void orderby_clause() throws ParseException {
                                  /*@bgen(jjtree) ORDERBY */
  SimpleNode jjtn000 = new SimpleNode(this, JJTORDERBY);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(ORDER);
      jj_consume_token(BY);
      orderby_item();
      label_16:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case COMMA:
          ;
          break;
        default:
          jj_la1[111] = jj_gen;
          break label_16;
        }
        jj_consume_token(COMMA);
        orderby_item();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void orderby_item() throws ParseException {
                                    /*@bgen(jjtree) ORDERBYITEM */
  SimpleNode jjtn000 = new SimpleNode(this, JJTORDERBYITEM);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      if (jj_2_61(2147483647)) {
        path();
      } else {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case AVG:
        case MIN:
        case MAX:
        case SUM:
        case COUNT:
          orderby_extension();
          break;
        default:
          jj_la1[112] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case ASC:
      case DESC:
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case ASC:
                SimpleNode jjtn001 = new SimpleNode(this, JJTASCENDING);
                boolean jjtc001 = true;
                jjtree.openNodeScope(jjtn001);
          try {
            jj_consume_token(ASC);
          } finally {
                if (jjtc001) {
                  jjtree.closeNodeScope(jjtn001, true);
                }
          }
          break;
        case DESC:
                                   SimpleNode jjtn002 = new SimpleNode(this, JJTDESCENDING);
                                   boolean jjtc002 = true;
                                   jjtree.openNodeScope(jjtn002);
          try {
            jj_consume_token(DESC);
          } finally {
                                   if (jjtc002) {
                                     jjtree.closeNodeScope(jjtn002, true);
                                   }
          }
          break;
        default:
          jj_la1[113] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
        break;
      default:
        jj_la1[114] = jj_gen;
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void orderby_extension() throws ParseException {
                                              /*@bgen(jjtree) ORDERBYEXTENSION */
  SimpleNode jjtn000 = new SimpleNode(this, JJTORDERBYEXTENSION);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      aggregate_select_expression();
    } catch (Throwable jjte000) {
      if (jjtc000) {
        jjtree.clearNodeScope(jjtn000);
        jjtc000 = false;
      } else {
        jjtree.popNode();
      }
      if (jjte000 instanceof RuntimeException) {
        {if (true) throw (RuntimeException)jjte000;}
      }
      if (jjte000 instanceof ParseException) {
        {if (true) throw (ParseException)jjte000;}
      }
      {if (true) throw (Error)jjte000;}
    } finally {
      if (jjtc000) {
        jjtree.closeNodeScope(jjtn000, true);
      }
    }
  }

  final public void abstract_schema_name() throws ParseException {
                                                   /*@bgen(jjtree) ABSTRACTSCHEMANAME */
  SimpleNode jjtn000 = new SimpleNode(this, JJTABSTRACTSCHEMANAME);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      path_component();
      label_17:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case DOT:
          ;
          break;
        default:
          jj_la1[115] = jj_gen;
          break label_17;
        }
        jj_consume_token(DOT);
        path_component();
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void tok() throws ParseException {
 /*@bgen(jjtree) TOK */
  SimpleNode jjtn000 = new SimpleNode(this, JJTTOK);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(IDENTIFIER);
                           jjtree.closeNodeScope(jjtn000, true);
                           jjtc000 = false;
                           jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void identification_variable() throws ParseException {
 /*@bgen(jjtree) IDENTIFIER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTIDENTIFIER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(IDENTIFIER);
                           jjtree.closeNodeScope(jjtn000, true);
                           jjtc000 = false;
                           jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void path_component() throws ParseException {
 /*@bgen(jjtree) IDENTIFICATIONVARIABLE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTIDENTIFICATIONVARIABLE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case NEW:
        t = jj_consume_token(NEW);
        break;
      case ALL:
        t = jj_consume_token(ALL);
        break;
      case ANY:
        t = jj_consume_token(ANY);
        break;
      case EXISTS:
        t = jj_consume_token(EXISTS);
        break;
      case SOME:
        t = jj_consume_token(SOME);
        break;
      case EMPTY:
        t = jj_consume_token(EMPTY);
        break;
      case ASC:
        t = jj_consume_token(ASC);
        break;
      case DESC:
        t = jj_consume_token(DESC);
        break;
      case ORDER:
        t = jj_consume_token(ORDER);
        break;
      case IS:
        t = jj_consume_token(IS);
        break;
      case MEMBER:
        t = jj_consume_token(MEMBER);
        break;
      case OF:
        t = jj_consume_token(OF);
        break;
      case LIKE:
        t = jj_consume_token(LIKE);
        break;
      case ESCAPE:
        t = jj_consume_token(ESCAPE);
        break;
      case BETWEEN:
        t = jj_consume_token(BETWEEN);
        break;
      case NULL:
        t = jj_consume_token(NULL);
        break;
      case AVG:
        t = jj_consume_token(AVG);
        break;
      case MIN:
        t = jj_consume_token(MIN);
        break;
      case MAX:
        t = jj_consume_token(MAX);
        break;
      case SUM:
        t = jj_consume_token(SUM);
        break;
      case COUNT:
        t = jj_consume_token(COUNT);
        break;
      case OR:
        t = jj_consume_token(OR);
        break;
      case AND:
        t = jj_consume_token(AND);
        break;
      case NOT:
        t = jj_consume_token(NOT);
        break;
      case CONCAT:
        t = jj_consume_token(CONCAT);
        break;
      case SUBSTRING:
        t = jj_consume_token(SUBSTRING);
        break;
      case TRIM:
        t = jj_consume_token(TRIM);
        break;
      case LOWER:
        t = jj_consume_token(LOWER);
        break;
      case UPPER:
        t = jj_consume_token(UPPER);
        break;
      case LEADING:
        t = jj_consume_token(LEADING);
        break;
      case TRAILING:
        t = jj_consume_token(TRAILING);
        break;
      case BOTH:
        t = jj_consume_token(BOTH);
        break;
      case LENGTH:
        t = jj_consume_token(LENGTH);
        break;
      case LOCATE:
        t = jj_consume_token(LOCATE);
        break;
      case ABS:
        t = jj_consume_token(ABS);
        break;
      case SQRT:
        t = jj_consume_token(SQRT);
        break;
      case MOD:
        t = jj_consume_token(MOD);
        break;
      case SIZE:
        t = jj_consume_token(SIZE);
        break;
      case CURRENT_DATE:
        t = jj_consume_token(CURRENT_DATE);
        break;
      case CURRENT_TIME:
        t = jj_consume_token(CURRENT_TIME);
        break;
      case CURRENT_TIMESTAMP:
        t = jj_consume_token(CURRENT_TIMESTAMP);
        break;
      case SELECT:
        t = jj_consume_token(SELECT);
        break;
      case DISTINCT:
        t = jj_consume_token(DISTINCT);
        break;
      case FROM:
        t = jj_consume_token(FROM);
        break;
      case UPDATE:
        t = jj_consume_token(UPDATE);
        break;
      case DELETE:
        t = jj_consume_token(DELETE);
        break;
      case WHERE:
        t = jj_consume_token(WHERE);
        break;
      case GROUP:
        t = jj_consume_token(GROUP);
        break;
      case BY:
        t = jj_consume_token(BY);
        break;
      case HAVING:
        t = jj_consume_token(HAVING);
        break;
      case AS:
        t = jj_consume_token(AS);
        break;
      case LEFT:
        t = jj_consume_token(LEFT);
        break;
      case OUTER:
        t = jj_consume_token(OUTER);
        break;
      case INNER:
        t = jj_consume_token(INNER);
        break;
      case JOIN:
        t = jj_consume_token(JOIN);
        break;
      case FETCH:
        t = jj_consume_token(FETCH);
        break;
      case IN:
        t = jj_consume_token(IN);
        break;
      case SET:
        t = jj_consume_token(SET);
        break;
      case OBJECT:
        t = jj_consume_token(OBJECT);
        break;
      case IDENTIFIER:
        t = jj_consume_token(IDENTIFIER);
        break;
      default:
        jj_la1[116] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
        jjtree.closeNodeScope(jjtn000, true);
        jjtc000 = false;
        jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void numeric_literal() throws ParseException {
    if (jj_2_62(2147483647)) {
      decimal_literal();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
      case INTEGER_LITERAL:
        integer_literal();
        break;
      default:
        jj_la1[117] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }

  final public void integer_literal() throws ParseException {
 /*@bgen(jjtree) INTEGERLITERAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTINTEGERLITERAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
          jj_consume_token(PLUS);
          break;
        case MINUS:
          negative();
          break;
        default:
          jj_la1[118] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
        break;
      default:
        jj_la1[119] = jj_gen;
        ;
      }
      t = jj_consume_token(INTEGER_LITERAL);
                                                      jjtree.closeNodeScope(jjtn000, true);
                                                      jjtc000 = false;
                                                      jjtn000.setToken (t);
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void decimal_literal() throws ParseException {
 /*@bgen(jjtree) DECIMALLITERAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTDECIMALLITERAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case PLUS:
      case MINUS:
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case PLUS:
          jj_consume_token(PLUS);
          break;
        case MINUS:
          negative();
          break;
        default:
          jj_la1[120] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
        break;
      default:
        jj_la1[121] = jj_gen;
        ;
      }
      t = jj_consume_token(DECIMAL_LITERAL);
                                                       jjtree.closeNodeScope(jjtn000, true);
                                                       jjtc000 = false;
                                                       jjtn000.setToken (t);
    } catch (Throwable jjte000) {
           if (jjtc000) {
             jjtree.clearNodeScope(jjtn000);
             jjtc000 = false;
           } else {
             jjtree.popNode();
           }
           if (jjte000 instanceof RuntimeException) {
             {if (true) throw (RuntimeException)jjte000;}
           }
           if (jjte000 instanceof ParseException) {
             {if (true) throw (ParseException)jjte000;}
           }
           {if (true) throw (Error)jjte000;}
    } finally {
           if (jjtc000) {
             jjtree.closeNodeScope(jjtn000, true);
           }
    }
  }

  final public void boolean_literal() throws ParseException {
 /*@bgen(jjtree) BOOLEANLITERAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTBOOLEANLITERAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(BOOLEAN_LITERAL);
                                jjtree.closeNodeScope(jjtn000, true);
                                jjtc000 = false;
                                jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void string_literal() throws ParseException {
 /*@bgen(jjtree) STRINGLITERAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTSTRINGLITERAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(STRING_LITERAL);
                               jjtree.closeNodeScope(jjtn000, true);
                               jjtc000 = false;
                               jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void input_parameter() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 87:
      named_input_parameter();
      break;
    case 88:
      positional_input_parameter();
      break;
    default:
      jj_la1[122] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
  }

  final public void named_input_parameter() throws ParseException {
 /*@bgen(jjtree) NAMEDINPUTPARAMETER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTNAMEDINPUTPARAMETER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      jj_consume_token(87);
      t = jj_consume_token(IDENTIFIER);
                               jjtree.closeNodeScope(jjtn000, true);
                               jjtc000 = false;
                               jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void positional_input_parameter() throws ParseException {
 /*@bgen(jjtree) POSITIONALINPUTPARAMETER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTPOSITIONALINPUTPARAMETER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      jj_consume_token(88);
      t = jj_consume_token(INTEGER_LITERAL);
                                    jjtree.closeNodeScope(jjtn000, true);
                                    jjtc000 = false;
                                    jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void pattern_value() throws ParseException {
                                      /*@bgen(jjtree) PATTERNVALUE */
  SimpleNode jjtn000 = new SimpleNode(this, JJTPATTERNVALUE);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case 87:
      case 88:
        input_parameter();
        break;
      case STRING_LITERAL:
        string_literal();
        break;
      default:
        jj_la1[123] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case ESCAPE:
        jj_consume_token(ESCAPE);
                     SimpleNode jjtn001 = new SimpleNode(this, JJTESCAPECHARACTER);
                     boolean jjtc001 = true;
                     jjtree.openNodeScope(jjtn001);
        try {
          escape_character();
        } catch (Throwable jjte001) {
                     if (jjtc001) {
                       jjtree.clearNodeScope(jjtn001);
                       jjtc001 = false;
                     } else {
                       jjtree.popNode();
                     }
                     if (jjte001 instanceof RuntimeException) {
                       {if (true) throw (RuntimeException)jjte001;}
                     }
                     if (jjte001 instanceof ParseException) {
                       {if (true) throw (ParseException)jjte001;}
                     }
                     {if (true) throw (Error)jjte001;}
        } finally {
                     if (jjtc001) {
                       jjtree.closeNodeScope(jjtn001, true);
                     }
        }
        break;
      default:
        jj_la1[124] = jj_gen;
        ;
      }
    } catch (Throwable jjte000) {
          if (jjtc000) {
            jjtree.clearNodeScope(jjtn000);
            jjtc000 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
            {if (true) throw (RuntimeException)jjte000;}
          }
          if (jjte000 instanceof ParseException) {
            {if (true) throw (ParseException)jjte000;}
          }
          {if (true) throw (Error)jjte000;}
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void escape_character() throws ParseException {
 /*@bgen(jjtree) ESCAPECHARACTER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTESCAPECHARACTER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(STRING_LITERAL);
                               jjtree.closeNodeScope(jjtn000, true);
                               jjtc000 = false;
                               jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void trim_character() throws ParseException {
 /*@bgen(jjtree) TRIMCHARACTER */
  SimpleNode jjtn000 = new SimpleNode(this, JJTTRIMCHARACTER);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);Token t;
    try {
      t = jj_consume_token(STRING_LITERAL);
                               jjtree.closeNodeScope(jjtn000, true);
                               jjtc000 = false;
                               jjtn000.setToken (t);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void EQ() throws ParseException {
                     /*@bgen(jjtree) EQUALS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTEQUALS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(EQ);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void NE() throws ParseException {
                        /*@bgen(jjtree) NOTEQUALS */
  SimpleNode jjtn000 = new SimpleNode(this, JJTNOTEQUALS);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(NE);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void GT() throws ParseException {
                          /*@bgen(jjtree) GREATERTHAN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTGREATERTHAN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(GT);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void GE() throws ParseException {
                             /*@bgen(jjtree) GREATEROREQUAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTGREATEROREQUAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(GE);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void LT() throws ParseException {
                       /*@bgen(jjtree) LESSTHAN */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLESSTHAN);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LT);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final public void LE() throws ParseException {
                          /*@bgen(jjtree) LESSOREQUAL */
  SimpleNode jjtn000 = new SimpleNode(this, JJTLESSOREQUAL);
  boolean jjtc000 = true;
  jjtree.openNodeScope(jjtn000);
    try {
      jj_consume_token(LE);
    } finally {
          if (jjtc000) {
            jjtree.closeNodeScope(jjtn000, true);
          }
    }
  }

  final private boolean jj_2_1(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_1(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(0, xla); }
  }

  final private boolean jj_2_2(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_2(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(1, xla); }
  }

  final private boolean jj_2_3(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_3(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(2, xla); }
  }

  final private boolean jj_2_4(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_4(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(3, xla); }
  }

  final private boolean jj_2_5(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_5(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(4, xla); }
  }

  final private boolean jj_2_6(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_6(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(5, xla); }
  }

  final private boolean jj_2_7(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_7(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(6, xla); }
  }

  final private boolean jj_2_8(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_8(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(7, xla); }
  }

  final private boolean jj_2_9(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_9(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(8, xla); }
  }

  final private boolean jj_2_10(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_10(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(9, xla); }
  }

  final private boolean jj_2_11(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_11(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(10, xla); }
  }

  final private boolean jj_2_12(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_12(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(11, xla); }
  }

  final private boolean jj_2_13(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_13(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(12, xla); }
  }

  final private boolean jj_2_14(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_14(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(13, xla); }
  }

  final private boolean jj_2_15(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_15(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(14, xla); }
  }

  final private boolean jj_2_16(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_16(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(15, xla); }
  }

  final private boolean jj_2_17(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_17(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(16, xla); }
  }

  final private boolean jj_2_18(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_18(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(17, xla); }
  }

  final private boolean jj_2_19(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_19(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(18, xla); }
  }

  final private boolean jj_2_20(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_20(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(19, xla); }
  }

  final private boolean jj_2_21(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_21(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(20, xla); }
  }

  final private boolean jj_2_22(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_22(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(21, xla); }
  }

  final private boolean jj_2_23(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_23(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(22, xla); }
  }

  final private boolean jj_2_24(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_24(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(23, xla); }
  }

  final private boolean jj_2_25(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_25(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(24, xla); }
  }

  final private boolean jj_2_26(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_26(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(25, xla); }
  }

  final private boolean jj_2_27(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_27(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(26, xla); }
  }

  final private boolean jj_2_28(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_28(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(27, xla); }
  }

  final private boolean jj_2_29(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_29(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(28, xla); }
  }

  final private boolean jj_2_30(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_30(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(29, xla); }
  }

  final private boolean jj_2_31(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_31(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(30, xla); }
  }

  final private boolean jj_2_32(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_32(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(31, xla); }
  }

  final private boolean jj_2_33(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_33(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(32, xla); }
  }

  final private boolean jj_2_34(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_34(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(33, xla); }
  }

  final private boolean jj_2_35(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_35(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(34, xla); }
  }

  final private boolean jj_2_36(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_36(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(35, xla); }
  }

  final private boolean jj_2_37(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_37(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(36, xla); }
  }

  final private boolean jj_2_38(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_38(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(37, xla); }
  }

  final private boolean jj_2_39(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_39(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(38, xla); }
  }

  final private boolean jj_2_40(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_40(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(39, xla); }
  }

  final private boolean jj_2_41(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_41(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(40, xla); }
  }

  final private boolean jj_2_42(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_42(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(41, xla); }
  }

  final private boolean jj_2_43(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_43(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(42, xla); }
  }

  final private boolean jj_2_44(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_44(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(43, xla); }
  }

  final private boolean jj_2_45(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_45(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(44, xla); }
  }

  final private boolean jj_2_46(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_46(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(45, xla); }
  }

  final private boolean jj_2_47(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_47(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(46, xla); }
  }

  final private boolean jj_2_48(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_48(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(47, xla); }
  }

  final private boolean jj_2_49(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_49(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(48, xla); }
  }

  final private boolean jj_2_50(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_50(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(49, xla); }
  }

  final private boolean jj_2_51(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_51(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(50, xla); }
  }

  final private boolean jj_2_52(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_52(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(51, xla); }
  }

  final private boolean jj_2_53(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_53(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(52, xla); }
  }

  final private boolean jj_2_54(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_54(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(53, xla); }
  }

  final private boolean jj_2_55(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_55(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(54, xla); }
  }

  final private boolean jj_2_56(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_56(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(55, xla); }
  }

  final private boolean jj_2_57(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_57(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(56, xla); }
  }

  final private boolean jj_2_58(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_58(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(57, xla); }
  }

  final private boolean jj_2_59(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_59(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(58, xla); }
  }

  final private boolean jj_2_60(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_60(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(59, xla); }
  }

  final private boolean jj_2_61(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_61(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(60, xla); }
  }

  final private boolean jj_2_62(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_62(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(61, xla); }
  }

  final private boolean jj_3R_116() {
    if (jj_3R_177()) return true;
    return false;
  }

  final private boolean jj_3R_113() {
    if (jj_3R_60()) return true;
    return false;
  }

  final private boolean jj_3R_59() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_154()) {
    jj_scanpos = xsp;
    if (jj_3R_155()) {
    jj_scanpos = xsp;
    if (jj_3R_156()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_154() {
    if (jj_3R_246()) return true;
    return false;
  }

  final private boolean jj_3_42() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_102() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_115() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_40() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_102()) jj_scanpos = xsp;
    if (jj_scan_token(EXISTS)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_118() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_109() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_122() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_119() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_47() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_119()) {
    jj_scanpos = xsp;
    if (jj_3R_120()) {
    jj_scanpos = xsp;
    if (jj_3R_121()) return true;
    }
    }
    xsp = jj_scanpos;
    if (jj_3R_122()) jj_scanpos = xsp;
    if (jj_scan_token(MEMBER)) return true;
    xsp = jj_scanpos;
    if (jj_scan_token(29)) jj_scanpos = xsp;
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_46() {
    if (jj_3R_30()) return true;
    if (jj_scan_token(IS)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_118()) jj_scanpos = xsp;
    if (jj_scan_token(EMPTY)) return true;
    return false;
  }

  final private boolean jj_3R_117() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_114() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_45() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_114()) {
    jj_scanpos = xsp;
    if (jj_3R_115()) {
    jj_scanpos = xsp;
    if (jj_3R_116()) return true;
    }
    }
    if (jj_scan_token(IS)) return true;
    xsp = jj_scanpos;
    if (jj_3R_117()) jj_scanpos = xsp;
    if (jj_scan_token(NULL)) return true;
    return false;
  }

  final private boolean jj_3R_191() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_190()) return true;
    return false;
  }

  final private boolean jj_3R_43() {
    if (jj_3R_49()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_109()) jj_scanpos = xsp;
    if (jj_scan_token(LIKE)) return true;
    if (jj_3R_110()) return true;
    return false;
  }

  final private boolean jj_3R_285() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_112() {
    if (jj_3R_190()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_191()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_284() {
    if (jj_3R_178()) return true;
    return false;
  }

  final private boolean jj_3R_283() {
    if (jj_3R_174()) return true;
    return false;
  }

  final private boolean jj_3R_282() {
    if (jj_3R_288()) return true;
    return false;
  }

  final private boolean jj_3R_111() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_190() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_282()) {
    jj_scanpos = xsp;
    if (jj_3R_283()) {
    jj_scanpos = xsp;
    if (jj_3R_284()) {
    jj_scanpos = xsp;
    if (jj_3R_285()) return true;
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_52() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_50() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_44() {
    if (jj_3R_30()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_111()) jj_scanpos = xsp;
    if (jj_scan_token(IN)) return true;
    if (jj_scan_token(85)) return true;
    xsp = jj_scanpos;
    if (jj_3R_112()) {
    jj_scanpos = xsp;
    if (jj_3R_113()) return true;
    }
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_48() {
    if (jj_scan_token(NOT)) return true;
    return false;
  }

  final private boolean jj_3R_93() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_36()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3_41() {
    if (jj_3R_51()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_52()) jj_scanpos = xsp;
    if (jj_scan_token(BETWEEN)) return true;
    if (jj_3R_51()) return true;
    if (jj_scan_token(AND)) return true;
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3_40() {
    if (jj_3R_49()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_50()) jj_scanpos = xsp;
    if (jj_scan_token(BETWEEN)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(AND)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_182() {
    if (jj_3R_38()) return true;
    return false;
  }

  final private boolean jj_3_38() {
    if (jj_3R_47()) return true;
    return false;
  }

  final private boolean jj_3_37() {
    if (jj_3R_46()) return true;
    return false;
  }

  final private boolean jj_3_36() {
    if (jj_3R_45()) return true;
    return false;
  }

  final private boolean jj_3_35() {
    if (jj_3R_44()) return true;
    return false;
  }

  final private boolean jj_3R_42() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_39()) {
    jj_scanpos = xsp;
    if (jj_3_40()) {
    jj_scanpos = xsp;
    if (jj_3_41()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3_34() {
    if (jj_3R_43()) return true;
    return false;
  }

  final private boolean jj_3_39() {
    if (jj_3R_24()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_48()) jj_scanpos = xsp;
    if (jj_scan_token(BETWEEN)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(AND)) return true;
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3_33() {
    if (jj_3R_42()) return true;
    return false;
  }

  final private boolean jj_3_32() {
    if (jj_3R_41()) return true;
    return false;
  }

  final private boolean jj_3_31() {
    if (jj_3R_40()) return true;
    return false;
  }

  final private boolean jj_3R_101() {
    if (jj_3R_47()) return true;
    return false;
  }

  final private boolean jj_3R_100() {
    if (jj_3R_46()) return true;
    return false;
  }

  final private boolean jj_3R_99() {
    if (jj_3R_45()) return true;
    return false;
  }

  final private boolean jj_3R_98() {
    if (jj_3R_44()) return true;
    return false;
  }

  final private boolean jj_3R_97() {
    if (jj_3R_43()) return true;
    return false;
  }

  final private boolean jj_3R_96() {
    if (jj_3R_42()) return true;
    return false;
  }

  final private boolean jj_3_30() {
    if (jj_3R_39()) return true;
    return false;
  }

  final private boolean jj_3R_95() {
    if (jj_3R_41()) return true;
    return false;
  }

  final private boolean jj_3_28() {
    if (jj_scan_token(AND)) return true;
    if (jj_3R_37()) return true;
    return false;
  }

  final private boolean jj_3R_94() {
    if (jj_3R_40()) return true;
    return false;
  }

  final private boolean jj_3R_39() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_94()) {
    jj_scanpos = xsp;
    if (jj_3R_95()) {
    jj_scanpos = xsp;
    if (jj_3R_96()) {
    jj_scanpos = xsp;
    if (jj_3R_97()) {
    jj_scanpos = xsp;
    if (jj_3R_98()) {
    jj_scanpos = xsp;
    if (jj_3R_99()) {
    jj_scanpos = xsp;
    if (jj_3R_100()) {
    jj_scanpos = xsp;
    if (jj_3R_101()) return true;
    }
    }
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_90() {
    if (jj_3R_180()) return true;
    return false;
  }

  final private boolean jj_3_29() {
    if (jj_scan_token(NOT)) return true;
    if (jj_3R_38()) return true;
    return false;
  }

  final private boolean jj_3R_92() {
    if (jj_3R_39()) return true;
    return false;
  }

  final private boolean jj_3R_38() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_92()) {
    jj_scanpos = xsp;
    if (jj_3R_93()) return true;
    }
    return false;
  }

  final private boolean jj_3_27() {
    if (jj_scan_token(OR)) return true;
    if (jj_3R_36()) return true;
    return false;
  }

  final private boolean jj_3R_91() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_181()) {
    jj_scanpos = xsp;
    if (jj_3R_182()) return true;
    }
    return false;
  }

  final private boolean jj_3R_181() {
    if (jj_scan_token(NOT)) return true;
    if (jj_3R_38()) return true;
    return false;
  }

  final private boolean jj_3_26() {
    if (jj_3R_35()) return true;
    return false;
  }

  final private boolean jj_3_25() {
    if (jj_3R_34()) return true;
    return false;
  }

  final private boolean jj_3_24() {
    if (jj_3R_33()) return true;
    return false;
  }

  final private boolean jj_3R_37() {
    if (jj_3R_91()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_28()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_186() {
    if (jj_3R_35()) return true;
    return false;
  }

  final private boolean jj_3R_185() {
    if (jj_3R_34()) return true;
    return false;
  }

  final private boolean jj_3R_36() {
    if (jj_3R_37()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_27()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_184() {
    if (jj_3R_33()) return true;
    return false;
  }

  final private boolean jj_3R_89() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_60() {
    if (jj_3R_157()) return true;
    if (jj_3R_183()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_184()) jj_scanpos = xsp;
    xsp = jj_scanpos;
    if (jj_3R_185()) jj_scanpos = xsp;
    xsp = jj_scanpos;
    if (jj_3R_186()) jj_scanpos = xsp;
    return false;
  }

  final private boolean jj_3R_35() {
    if (jj_scan_token(HAVING)) return true;
    if (jj_3R_36()) return true;
    return false;
  }

  final private boolean jj_3_23() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3_22() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_32()) return true;
    return false;
  }

  final private boolean jj_3R_180() {
    if (jj_3R_276()) return true;
    return false;
  }

  final private boolean jj_3R_88() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_32() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_88()) {
    jj_scanpos = xsp;
    if (jj_3R_89()) {
    jj_scanpos = xsp;
    if (jj_3R_90()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_34() {
    if (jj_scan_token(GROUP)) return true;
    if (jj_scan_token(BY)) return true;
    if (jj_3R_32()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_22()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_87() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_33() {
    if (jj_scan_token(WHERE)) return true;
    if (jj_3R_36()) return true;
    return false;
  }

  final private boolean jj_3R_298() {
    if (jj_scan_token(SUM)) return true;
    if (jj_3R_318()) return true;
    return false;
  }

  final private boolean jj_3R_297() {
    if (jj_scan_token(MIN)) return true;
    if (jj_3R_318()) return true;
    return false;
  }

  final private boolean jj_3_21() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_296() {
    if (jj_scan_token(MAX)) return true;
    if (jj_3R_318()) return true;
    return false;
  }

  final private boolean jj_3R_295() {
    if (jj_scan_token(AVG)) return true;
    if (jj_3R_318()) return true;
    return false;
  }

  final private boolean jj_3R_86() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3_20() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_275() {
    if (jj_3R_299()) return true;
    return false;
  }

  final private boolean jj_3_19() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3_18() {
    if (jj_3R_31()) return true;
    return false;
  }

  final private boolean jj_3_17() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_299() {
    if (jj_scan_token(COUNT)) return true;
    if (jj_3R_318()) return true;
    return false;
  }

  final private boolean jj_3R_274() {
    if (jj_3R_298()) return true;
    return false;
  }

  final private boolean jj_3R_332() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_331() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_31() {
    if (jj_scan_token(DISTINCT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_86()) {
    jj_scanpos = xsp;
    if (jj_3R_87()) return true;
    }
    return false;
  }

  final private boolean jj_3R_330() {
    if (jj_3R_31()) return true;
    return false;
  }

  final private boolean jj_3R_329() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_273() {
    if (jj_3R_297()) return true;
    return false;
  }

  final private boolean jj_3R_318() {
    if (jj_scan_token(85)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_329()) {
    jj_scanpos = xsp;
    if (jj_3R_330()) {
    jj_scanpos = xsp;
    if (jj_3R_331()) {
    jj_scanpos = xsp;
    if (jj_3R_332()) return true;
    }
    }
    }
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_272() {
    if (jj_3R_296()) return true;
    return false;
  }

  final private boolean jj_3R_303() {
    if (jj_scan_token(DISTINCT)) return true;
    return false;
  }

  final private boolean jj_3R_271() {
    if (jj_3R_295()) return true;
    return false;
  }

  final private boolean jj_3R_177() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_271()) {
    jj_scanpos = xsp;
    if (jj_3R_272()) {
    jj_scanpos = xsp;
    if (jj_3R_273()) {
    jj_scanpos = xsp;
    if (jj_3R_274()) {
    jj_scanpos = xsp;
    if (jj_3R_275()) return true;
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_305() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_304()) return true;
    return false;
  }

  final private boolean jj_3R_321() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_320() {
    if (jj_3R_177()) return true;
    return false;
  }

  final private boolean jj_3_16() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_319() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_304() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_319()) {
    jj_scanpos = xsp;
    if (jj_3R_320()) {
    jj_scanpos = xsp;
    if (jj_3R_321()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3_15() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_278() {
    if (jj_3R_304()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_305()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_188() {
    if (jj_3R_174()) return true;
    return false;
  }

  final private boolean jj_3R_161() {
    if (jj_scan_token(STRING_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3R_84() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_281() {
    if (jj_scan_token(STRING_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3R_277() {
    if (jj_3R_303()) return true;
    return false;
  }

  final private boolean jj_3R_159() {
    if (jj_3R_250()) return true;
    return false;
  }

  final private boolean jj_3R_189() {
    if (jj_scan_token(ESCAPE)) return true;
    if (jj_3R_281()) return true;
    return false;
  }

  final private boolean jj_3R_187() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_110() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_187()) {
    jj_scanpos = xsp;
    if (jj_3R_188()) return true;
    }
    xsp = jj_scanpos;
    if (jj_3R_189()) jj_scanpos = xsp;
    return false;
  }

  final private boolean jj_3R_157() {
    if (jj_scan_token(SELECT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_277()) jj_scanpos = xsp;
    if (jj_3R_278()) return true;
    return false;
  }

  final private boolean jj_3R_311() {
    if (jj_3R_322()) return true;
    return false;
  }

  final private boolean jj_3R_250() {
    if (jj_scan_token(88)) return true;
    if (jj_scan_token(INTEGER_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3_2() {
    if (jj_3R_19()) return true;
    return false;
  }

  final private boolean jj_3R_249() {
    if (jj_scan_token(87)) return true;
    if (jj_scan_token(IDENTIFIER)) return true;
    return false;
  }

  final private boolean jj_3_5() {
    if (jj_3R_22()) return true;
    return false;
  }

  final private boolean jj_3_14() {
    if (jj_3R_29()) return true;
    return false;
  }

  final private boolean jj_3_13() {
    if (jj_3R_28()) return true;
    return false;
  }

  final private boolean jj_3_12() {
    if (jj_3R_27()) return true;
    return false;
  }

  final private boolean jj_3R_83() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_29() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_83()) {
    jj_scanpos = xsp;
    if (jj_3R_84()) return true;
    }
    return false;
  }

  final private boolean jj_3_11() {
    if (jj_3R_26()) return true;
    return false;
  }

  final private boolean jj_3_10() {
    if (jj_3R_25()) return true;
    return false;
  }

  final private boolean jj_3_9() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_62() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_158()) {
    jj_scanpos = xsp;
    if (jj_3R_159()) return true;
    }
    return false;
  }

  final private boolean jj_3R_158() {
    if (jj_3R_249()) return true;
    return false;
  }

  final private boolean jj_3R_167() {
    if (jj_3R_22()) return true;
    return false;
  }

  final private boolean jj_3R_85() {
    if (jj_scan_token(DOT)) return true;
    if (jj_3R_179()) return true;
    return false;
  }

  final private boolean jj_3R_174() {
    if (jj_scan_token(STRING_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3R_253() {
    if (jj_3R_287()) return true;
    return false;
  }

  final private boolean jj_3R_178() {
    if (jj_scan_token(BOOLEAN_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3R_335() {
    if (jj_3R_287()) return true;
    return false;
  }

  final private boolean jj_3R_162() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(13)) {
    jj_scanpos = xsp;
    if (jj_3R_253()) return true;
    }
    return false;
  }

  final private boolean jj_3R_65() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_162()) jj_scanpos = xsp;
    if (jj_scan_token(DECIMAL_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3_62() {
    if (jj_3R_65()) return true;
    return false;
  }

  final private boolean jj_3R_333() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(13)) {
    jj_scanpos = xsp;
    if (jj_3R_335()) return true;
    }
    return false;
  }

  final private boolean jj_3R_322() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_333()) jj_scanpos = xsp;
    if (jj_scan_token(INTEGER_LITERAL)) return true;
    return false;
  }

  final private boolean jj_3R_69() {
    if (jj_3R_169()) return true;
    return false;
  }

  final private boolean jj_3_4() {
    if (jj_3R_21()) return true;
    return false;
  }

  final private boolean jj_3R_310() {
    if (jj_3R_65()) return true;
    return false;
  }

  final private boolean jj_3R_288() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_310()) {
    jj_scanpos = xsp;
    if (jj_3R_311()) return true;
    }
    return false;
  }

  final private boolean jj_3R_30() {
    if (jj_3R_23()) return true;
    Token xsp;
    if (jj_3R_85()) return true;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_85()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3_6() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_169() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(70)) jj_scanpos = xsp;
    if (jj_scan_token(JOIN)) return true;
    if (jj_scan_token(FETCH)) return true;
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_166() {
    if (jj_3R_21()) return true;
    return false;
  }

  final private boolean jj_3R_164() {
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_168() {
    if (jj_scan_token(LEFT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(69)) jj_scanpos = xsp;
    if (jj_scan_token(JOIN)) return true;
    if (jj_scan_token(FETCH)) return true;
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_68() {
    if (jj_3R_168()) return true;
    return false;
  }

  final private boolean jj_3R_20() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_68()) {
    jj_scanpos = xsp;
    if (jj_3R_69()) return true;
    }
    return false;
  }

  final private boolean jj_3R_22() {
    if (jj_scan_token(LEFT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(69)) jj_scanpos = xsp;
    if (jj_scan_token(JOIN)) return true;
    if (jj_3R_30()) return true;
    xsp = jj_scanpos;
    if (jj_scan_token(67)) jj_scanpos = xsp;
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3_8() {
    if (jj_3R_19()) return true;
    return false;
  }

  final private boolean jj_3R_18() {
    if (jj_scan_token(IN)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_30()) return true;
    if (jj_scan_token(86)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(67)) jj_scanpos = xsp;
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3_7() {
    if (jj_3R_18()) return true;
    return false;
  }

  final private boolean jj_3_1() {
    if (jj_3R_18()) return true;
    return false;
  }

  final private boolean jj_3R_21() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(70)) jj_scanpos = xsp;
    if (jj_scan_token(JOIN)) return true;
    if (jj_3R_30()) return true;
    xsp = jj_scanpos;
    if (jj_scan_token(67)) jj_scanpos = xsp;
    if (jj_3R_23()) return true;
    return false;
  }

  final private boolean jj_3R_280() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_279()) return true;
    return false;
  }

  final private boolean jj_3_3() {
    if (jj_3R_20()) return true;
    return false;
  }

  final private boolean jj_3R_307() {
    if (jj_3R_19()) return true;
    return false;
  }

  final private boolean jj_3R_306() {
    if (jj_3R_18()) return true;
    return false;
  }

  final private boolean jj_3R_279() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_306()) {
    jj_scanpos = xsp;
    if (jj_3R_307()) return true;
    }
    return false;
  }

  final private boolean jj_3R_67() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_165()) {
    jj_scanpos = xsp;
    if (jj_3R_166()) {
    jj_scanpos = xsp;
    if (jj_3R_167()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_165() {
    if (jj_3R_20()) return true;
    return false;
  }

  final private boolean jj_3R_183() {
    if (jj_scan_token(FROM)) return true;
    if (jj_3R_279()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_280()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_66() {
    if (jj_3R_163()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(67)) jj_scanpos = xsp;
    xsp = jj_scanpos;
    if (jj_3R_164()) jj_scanpos = xsp;
    return false;
  }

  final private boolean jj_3R_19() {
    if (jj_3R_66()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_67()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_179() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_scan_token(17)) {
    jj_scanpos = xsp;
    if (jj_scan_token(18)) {
    jj_scanpos = xsp;
    if (jj_scan_token(19)) {
    jj_scanpos = xsp;
    if (jj_scan_token(20)) {
    jj_scanpos = xsp;
    if (jj_scan_token(21)) {
    jj_scanpos = xsp;
    if (jj_scan_token(22)) {
    jj_scanpos = xsp;
    if (jj_scan_token(23)) {
    jj_scanpos = xsp;
    if (jj_scan_token(24)) {
    jj_scanpos = xsp;
    if (jj_scan_token(25)) {
    jj_scanpos = xsp;
    if (jj_scan_token(27)) {
    jj_scanpos = xsp;
    if (jj_scan_token(28)) {
    jj_scanpos = xsp;
    if (jj_scan_token(29)) {
    jj_scanpos = xsp;
    if (jj_scan_token(30)) {
    jj_scanpos = xsp;
    if (jj_scan_token(31)) {
    jj_scanpos = xsp;
    if (jj_scan_token(32)) {
    jj_scanpos = xsp;
    if (jj_scan_token(33)) {
    jj_scanpos = xsp;
    if (jj_scan_token(34)) {
    jj_scanpos = xsp;
    if (jj_scan_token(35)) {
    jj_scanpos = xsp;
    if (jj_scan_token(36)) {
    jj_scanpos = xsp;
    if (jj_scan_token(37)) {
    jj_scanpos = xsp;
    if (jj_scan_token(38)) {
    jj_scanpos = xsp;
    if (jj_scan_token(39)) {
    jj_scanpos = xsp;
    if (jj_scan_token(40)) {
    jj_scanpos = xsp;
    if (jj_scan_token(41)) {
    jj_scanpos = xsp;
    if (jj_scan_token(42)) {
    jj_scanpos = xsp;
    if (jj_scan_token(43)) {
    jj_scanpos = xsp;
    if (jj_scan_token(44)) {
    jj_scanpos = xsp;
    if (jj_scan_token(45)) {
    jj_scanpos = xsp;
    if (jj_scan_token(46)) {
    jj_scanpos = xsp;
    if (jj_scan_token(47)) {
    jj_scanpos = xsp;
    if (jj_scan_token(48)) {
    jj_scanpos = xsp;
    if (jj_scan_token(49)) {
    jj_scanpos = xsp;
    if (jj_scan_token(50)) {
    jj_scanpos = xsp;
    if (jj_scan_token(51)) {
    jj_scanpos = xsp;
    if (jj_scan_token(52)) {
    jj_scanpos = xsp;
    if (jj_scan_token(53)) {
    jj_scanpos = xsp;
    if (jj_scan_token(54)) {
    jj_scanpos = xsp;
    if (jj_scan_token(55)) {
    jj_scanpos = xsp;
    if (jj_scan_token(56)) {
    jj_scanpos = xsp;
    if (jj_scan_token(57)) {
    jj_scanpos = xsp;
    if (jj_scan_token(58)) {
    jj_scanpos = xsp;
    if (jj_scan_token(59)) {
    jj_scanpos = xsp;
    if (jj_scan_token(60)) {
    jj_scanpos = xsp;
    if (jj_scan_token(61)) {
    jj_scanpos = xsp;
    if (jj_scan_token(62)) {
    jj_scanpos = xsp;
    if (jj_scan_token(63)) {
    jj_scanpos = xsp;
    if (jj_scan_token(64)) {
    jj_scanpos = xsp;
    if (jj_scan_token(65)) {
    jj_scanpos = xsp;
    if (jj_scan_token(26)) {
    jj_scanpos = xsp;
    if (jj_scan_token(66)) {
    jj_scanpos = xsp;
    if (jj_scan_token(67)) {
    jj_scanpos = xsp;
    if (jj_scan_token(68)) {
    jj_scanpos = xsp;
    if (jj_scan_token(69)) {
    jj_scanpos = xsp;
    if (jj_scan_token(70)) {
    jj_scanpos = xsp;
    if (jj_scan_token(71)) {
    jj_scanpos = xsp;
    if (jj_scan_token(72)) {
    jj_scanpos = xsp;
    if (jj_scan_token(73)) {
    jj_scanpos = xsp;
    if (jj_scan_token(74)) {
    jj_scanpos = xsp;
    if (jj_scan_token(75)) {
    jj_scanpos = xsp;
    if (jj_scan_token(82)) return true;
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_254() {
    if (jj_scan_token(DOT)) return true;
    if (jj_3R_179()) return true;
    return false;
  }

  final private boolean jj_3R_23() {
    if (jj_scan_token(IDENTIFIER)) return true;
    return false;
  }

  final private boolean jj_3R_163() {
    if (jj_3R_179()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_254()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3_61() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_270() {
    if (jj_scan_token(CURRENT_TIMESTAMP)) return true;
    return false;
  }

  final private boolean jj_3R_269() {
    if (jj_scan_token(CURRENT_TIME)) return true;
    return false;
  }

  final private boolean jj_3R_268() {
    if (jj_scan_token(CURRENT_DATE)) return true;
    return false;
  }

  final private boolean jj_3R_176() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_268()) {
    jj_scanpos = xsp;
    if (jj_3R_269()) {
    jj_scanpos = xsp;
    if (jj_3R_270()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_317() {
    if (jj_3R_328()) return true;
    return false;
  }

  final private boolean jj_3R_328() {
    if (jj_scan_token(SIZE)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_30()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_316() {
    if (jj_3R_327()) return true;
    return false;
  }

  final private boolean jj_3R_252() {
    if (jj_scan_token(BOTH)) return true;
    return false;
  }

  final private boolean jj_3R_327() {
    if (jj_scan_token(MOD)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_315() {
    if (jj_3R_326()) return true;
    return false;
  }

  final private boolean jj_3R_326() {
    if (jj_scan_token(SQRT)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_334() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_314() {
    if (jj_3R_325()) return true;
    return false;
  }

  final private boolean jj_3R_64() {
    if (jj_3R_161()) return true;
    return false;
  }

  final private boolean jj_3R_325() {
    if (jj_scan_token(ABS)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_251() {
    if (jj_scan_token(TRAILING)) return true;
    return false;
  }

  final private boolean jj_3R_324() {
    if (jj_scan_token(LOCATE)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_49()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_334()) jj_scanpos = xsp;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_313() {
    if (jj_3R_324()) return true;
    return false;
  }

  final private boolean jj_3R_323() {
    if (jj_scan_token(LENGTH)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_312() {
    if (jj_3R_323()) return true;
    return false;
  }

  final private boolean jj_3R_289() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_312()) {
    jj_scanpos = xsp;
    if (jj_3R_313()) {
    jj_scanpos = xsp;
    if (jj_3R_314()) {
    jj_scanpos = xsp;
    if (jj_3R_315()) {
    jj_scanpos = xsp;
    if (jj_3R_316()) {
    jj_scanpos = xsp;
    if (jj_3R_317()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_267() {
    if (jj_3R_294()) return true;
    return false;
  }

  final private boolean jj_3R_63() {
    if (jj_3R_160()) return true;
    return false;
  }

  final private boolean jj_3_60() {
    if (jj_scan_token(LEADING)) return true;
    return false;
  }

  final private boolean jj_3R_160() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_60()) {
    jj_scanpos = xsp;
    if (jj_3R_251()) {
    jj_scanpos = xsp;
    if (jj_3R_252()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_266() {
    if (jj_3R_293()) return true;
    return false;
  }

  final private boolean jj_3R_294() {
    if (jj_scan_token(UPPER)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3_59() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_63()) jj_scanpos = xsp;
    xsp = jj_scanpos;
    if (jj_3R_64()) jj_scanpos = xsp;
    if (jj_scan_token(FROM)) return true;
    return false;
  }

  final private boolean jj_3R_293() {
    if (jj_scan_token(LOWER)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_265() {
    if (jj_3R_292()) return true;
    return false;
  }

  final private boolean jj_3R_292() {
    if (jj_scan_token(TRIM)) return true;
    if (jj_scan_token(85)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_59()) jj_scanpos = xsp;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_309() {
    if (jj_3R_179()) return true;
    return false;
  }

  final private boolean jj_3R_241() {
    if (jj_3R_286()) return true;
    return false;
  }

  final private boolean jj_3R_291() {
    if (jj_scan_token(SUBSTRING)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_264() {
    if (jj_3R_291()) return true;
    return false;
  }

  final private boolean jj_3R_290() {
    if (jj_scan_token(CONCAT)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_78() {
    if (jj_3R_177()) return true;
    return false;
  }

  final private boolean jj_3R_80() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_263() {
    if (jj_3R_290()) return true;
    return false;
  }

  final private boolean jj_3R_175() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_263()) {
    jj_scanpos = xsp;
    if (jj_3R_264()) {
    jj_scanpos = xsp;
    if (jj_3R_265()) {
    jj_scanpos = xsp;
    if (jj_3R_266()) {
    jj_scanpos = xsp;
    if (jj_3R_267()) return true;
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3_58() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_151() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_240()) {
    jj_scanpos = xsp;
    if (jj_3R_241()) return true;
    }
    return false;
  }

  final private boolean jj_3R_240() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_308() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_286() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_308()) {
    jj_scanpos = xsp;
    if (jj_3R_309()) return true;
    }
    return false;
  }

  final private boolean jj_3_57() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3_56() {
    if (jj_3R_61()) return true;
    return false;
  }

  final private boolean jj_3R_77() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_223() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_79() {
    if (jj_3R_178()) return true;
    return false;
  }

  final private boolean jj_3R_61() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_82() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_81() {
    if (jj_3R_61()) return true;
    return false;
  }

  final private boolean jj_3R_217() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_28() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_55()) {
    jj_scanpos = xsp;
    if (jj_3R_81()) {
    jj_scanpos = xsp;
    if (jj_3R_82()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3_55() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_142() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_222()) {
    jj_scanpos = xsp;
    if (jj_3R_223()) return true;
    }
    return false;
  }

  final private boolean jj_3R_222() {
    if (jj_3R_28()) return true;
    return false;
  }

  final private boolean jj_3_53() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_27() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_54()) {
    jj_scanpos = xsp;
    if (jj_3R_79()) {
    jj_scanpos = xsp;
    if (jj_3R_80()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3_54() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3_52() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_49()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_126() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_139() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_216()) {
    jj_scanpos = xsp;
    if (jj_3R_217()) return true;
    }
    return false;
  }

  final private boolean jj_3R_216() {
    if (jj_3R_27()) return true;
    return false;
  }

  final private boolean jj_3R_76() {
    if (jj_3R_176()) return true;
    return false;
  }

  final private boolean jj_3R_73() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_124() {
    if (jj_3R_25()) return true;
    return false;
  }

  final private boolean jj_3R_75() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_26() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_75()) {
    jj_scanpos = xsp;
    if (jj_3R_76()) {
    jj_scanpos = xsp;
    if (jj_3R_77()) {
    jj_scanpos = xsp;
    if (jj_3R_78()) return true;
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_51() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_125()) {
    jj_scanpos = xsp;
    if (jj_3R_126()) return true;
    }
    return false;
  }

  final private boolean jj_3R_125() {
    if (jj_3R_26()) return true;
    return false;
  }

  final private boolean jj_3R_74() {
    if (jj_3R_175()) return true;
    return false;
  }

  final private boolean jj_3R_72() {
    if (jj_3R_174()) return true;
    return false;
  }

  final private boolean jj_3R_25() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_72()) {
    jj_scanpos = xsp;
    if (jj_3R_73()) {
    jj_scanpos = xsp;
    if (jj_3_52()) {
    jj_scanpos = xsp;
    if (jj_3R_74()) {
    jj_scanpos = xsp;
    if (jj_3_53()) return true;
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_49() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_123()) {
    jj_scanpos = xsp;
    if (jj_3R_124()) return true;
    }
    return false;
  }

  final private boolean jj_3R_123() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_287() {
    if (jj_scan_token(MINUS)) return true;
    return false;
  }

  final private boolean jj_3R_245() {
    if (jj_3R_151()) return true;
    return false;
  }

  final private boolean jj_3R_260() {
    if (jj_3R_60()) return true;
    return false;
  }

  final private boolean jj_3R_259() {
    if (jj_3R_177()) return true;
    return false;
  }

  final private boolean jj_3R_262() {
    if (jj_scan_token(DIV)) return true;
    if (jj_3R_70()) return true;
    return false;
  }

  final private boolean jj_3R_258() {
    if (jj_3R_289()) return true;
    return false;
  }

  final private boolean jj_3R_243() {
    if (jj_3R_151()) return true;
    return false;
  }

  final private boolean jj_3_51() {
    if (jj_scan_token(85)) return true;
    if (jj_3R_24()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_261() {
    if (jj_scan_token(TIMES)) return true;
    if (jj_3R_70()) return true;
    return false;
  }

  final private boolean jj_3R_257() {
    if (jj_3R_30()) return true;
    return false;
  }

  final private boolean jj_3R_171() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_261()) {
    jj_scanpos = xsp;
    if (jj_3R_262()) return true;
    }
    return false;
  }

  final private boolean jj_3R_256() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_255() {
    if (jj_3R_288()) return true;
    return false;
  }

  final private boolean jj_3R_170() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_255()) {
    jj_scanpos = xsp;
    if (jj_3R_256()) {
    jj_scanpos = xsp;
    if (jj_3R_257()) {
    jj_scanpos = xsp;
    if (jj_3_51()) {
    jj_scanpos = xsp;
    if (jj_3R_258()) {
    jj_scanpos = xsp;
    if (jj_3R_259()) {
    jj_scanpos = xsp;
    if (jj_3R_260()) return true;
    }
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_239() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_173() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_237() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_235() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_71() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_172()) {
    jj_scanpos = xsp;
    if (jj_3R_173()) return true;
    }
    return false;
  }

  final private boolean jj_3R_172() {
    if (jj_scan_token(PLUS)) return true;
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_233() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_70() {
    if (jj_3R_170()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_171()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_231() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_229() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_203() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_201() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_24() {
    if (jj_3R_70()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_71()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  final private boolean jj_3R_199() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_197() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_195() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_193() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_302() {
    if (jj_3R_175()) return true;
    return false;
  }

  final private boolean jj_3R_301() {
    if (jj_3R_176()) return true;
    return false;
  }

  final private boolean jj_3R_238() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_236() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_234() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_232() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_230() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_300() {
    if (jj_3R_289()) return true;
    return false;
  }

  final private boolean jj_3R_276() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_300()) {
    jj_scanpos = xsp;
    if (jj_3R_301()) {
    jj_scanpos = xsp;
    if (jj_3R_302()) return true;
    }
    }
    return false;
  }

  final private boolean jj_3R_150() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_238()) {
    jj_scanpos = xsp;
    if (jj_3R_239()) return true;
    }
    return false;
  }

  final private boolean jj_3R_228() {
    if (jj_3R_51()) return true;
    return false;
  }

  final private boolean jj_3R_149() {
    if (jj_scan_token(LE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_236()) {
    jj_scanpos = xsp;
    if (jj_3R_237()) return true;
    }
    return false;
  }

  final private boolean jj_3R_148() {
    if (jj_scan_token(LT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_234()) {
    jj_scanpos = xsp;
    if (jj_3R_235()) return true;
    }
    return false;
  }

  final private boolean jj_3R_147() {
    if (jj_scan_token(GE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_232()) {
    jj_scanpos = xsp;
    if (jj_3R_233()) return true;
    }
    return false;
  }

  final private boolean jj_3R_146() {
    if (jj_scan_token(GT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_230()) {
    jj_scanpos = xsp;
    if (jj_3R_231()) return true;
    }
    return false;
  }

  final private boolean jj_3R_202() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_145() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_228()) {
    jj_scanpos = xsp;
    if (jj_3R_229()) return true;
    }
    return false;
  }

  final private boolean jj_3R_200() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_57() {
    if (jj_3R_51()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_145()) {
    jj_scanpos = xsp;
    if (jj_3R_146()) {
    jj_scanpos = xsp;
    if (jj_3R_147()) {
    jj_scanpos = xsp;
    if (jj_3R_148()) {
    jj_scanpos = xsp;
    if (jj_3R_149()) {
    jj_scanpos = xsp;
    if (jj_3R_150()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_198() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_227() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3_50() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_196() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_194() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_225() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3_49() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_132() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_202()) {
    jj_scanpos = xsp;
    if (jj_3R_203()) return true;
    }
    return false;
  }

  final private boolean jj_3R_192() {
    if (jj_3R_24()) return true;
    return false;
  }

  final private boolean jj_3R_221() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_131() {
    if (jj_scan_token(LE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_200()) {
    jj_scanpos = xsp;
    if (jj_3R_201()) return true;
    }
    return false;
  }

  final private boolean jj_3R_130() {
    if (jj_scan_token(LT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_198()) {
    jj_scanpos = xsp;
    if (jj_3R_199()) return true;
    }
    return false;
  }

  final private boolean jj_3R_215() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_129() {
    if (jj_scan_token(GE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_196()) {
    jj_scanpos = xsp;
    if (jj_3R_197()) return true;
    }
    return false;
  }

  final private boolean jj_3R_213() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_219() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_128() {
    if (jj_scan_token(GT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_194()) {
    jj_scanpos = xsp;
    if (jj_3R_195()) return true;
    }
    return false;
  }

  final private boolean jj_3R_211() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_209() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_244() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_127() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_192()) {
    jj_scanpos = xsp;
    if (jj_3R_193()) return true;
    }
    return false;
  }

  final private boolean jj_3R_53() {
    if (jj_3R_24()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_127()) {
    jj_scanpos = xsp;
    if (jj_3R_128()) {
    jj_scanpos = xsp;
    if (jj_3R_129()) {
    jj_scanpos = xsp;
    if (jj_3R_130()) {
    jj_scanpos = xsp;
    if (jj_3R_131()) {
    jj_scanpos = xsp;
    if (jj_3R_132()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_207() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_242() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_205() {
    if (jj_3R_59()) return true;
    return false;
  }

  final private boolean jj_3R_153() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_244()) {
    jj_scanpos = xsp;
    if (jj_3R_245()) return true;
    }
    return false;
  }

  final private boolean jj_3R_226() {
    if (jj_3R_142()) return true;
    return false;
  }

  final private boolean jj_3R_152() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_242()) {
    jj_scanpos = xsp;
    if (jj_3R_243()) return true;
    }
    return false;
  }

  final private boolean jj_3R_58() {
    if (jj_3R_151()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_152()) {
    jj_scanpos = xsp;
    if (jj_3R_153()) return true;
    }
    return false;
  }

  final private boolean jj_3R_224() {
    if (jj_3R_142()) return true;
    return false;
  }

  final private boolean jj_3R_144() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_226()) {
    jj_scanpos = xsp;
    if (jj_3R_227()) return true;
    }
    return false;
  }

  final private boolean jj_3R_220() {
    if (jj_3R_139()) return true;
    return false;
  }

  final private boolean jj_3R_214() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_143() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_224()) {
    jj_scanpos = xsp;
    if (jj_3R_225()) return true;
    }
    return false;
  }

  final private boolean jj_3R_212() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_56() {
    if (jj_3R_142()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_143()) {
    jj_scanpos = xsp;
    if (jj_3R_144()) return true;
    }
    return false;
  }

  final private boolean jj_3R_210() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_218() {
    if (jj_3R_139()) return true;
    return false;
  }

  final private boolean jj_3R_208() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_206() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_141() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_220()) {
    jj_scanpos = xsp;
    if (jj_3R_221()) return true;
    }
    return false;
  }

  final private boolean jj_3R_138() {
    if (jj_scan_token(LE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_214()) {
    jj_scanpos = xsp;
    if (jj_3R_215()) return true;
    }
    return false;
  }

  final private boolean jj_3R_204() {
    if (jj_3R_49()) return true;
    return false;
  }

  final private boolean jj_3R_137() {
    if (jj_scan_token(LT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_212()) {
    jj_scanpos = xsp;
    if (jj_3R_213()) return true;
    }
    return false;
  }

  final private boolean jj_3R_136() {
    if (jj_scan_token(GE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_210()) {
    jj_scanpos = xsp;
    if (jj_3R_211()) return true;
    }
    return false;
  }

  final private boolean jj_3R_140() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_218()) {
    jj_scanpos = xsp;
    if (jj_3R_219()) return true;
    }
    return false;
  }

  final private boolean jj_3R_55() {
    if (jj_3R_139()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_140()) {
    jj_scanpos = xsp;
    if (jj_3R_141()) return true;
    }
    return false;
  }

  final private boolean jj_3R_135() {
    if (jj_scan_token(GT)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_208()) {
    jj_scanpos = xsp;
    if (jj_3R_209()) return true;
    }
    return false;
  }

  final private boolean jj_3R_134() {
    if (jj_scan_token(NE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_206()) {
    jj_scanpos = xsp;
    if (jj_3R_207()) return true;
    }
    return false;
  }

  final private boolean jj_3R_133() {
    if (jj_scan_token(EQ)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_204()) {
    jj_scanpos = xsp;
    if (jj_3R_205()) return true;
    }
    return false;
  }

  final private boolean jj_3_48() {
    if (jj_3R_58()) return true;
    return false;
  }

  final private boolean jj_3_47() {
    if (jj_3R_57()) return true;
    return false;
  }

  final private boolean jj_3_46() {
    if (jj_3R_56()) return true;
    return false;
  }

  final private boolean jj_3_45() {
    if (jj_3R_55()) return true;
    return false;
  }

  final private boolean jj_3R_156() {
    if (jj_3R_248()) return true;
    return false;
  }

  final private boolean jj_3R_54() {
    if (jj_3R_49()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_133()) {
    jj_scanpos = xsp;
    if (jj_3R_134()) {
    jj_scanpos = xsp;
    if (jj_3R_135()) {
    jj_scanpos = xsp;
    if (jj_3R_136()) {
    jj_scanpos = xsp;
    if (jj_3R_137()) {
    jj_scanpos = xsp;
    if (jj_3R_138()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3_44() {
    if (jj_3R_54()) return true;
    return false;
  }

  final private boolean jj_3_43() {
    if (jj_3R_53()) return true;
    return false;
  }

  final private boolean jj_3R_121() {
    if (jj_3R_179()) return true;
    return false;
  }

  final private boolean jj_3R_108() {
    if (jj_3R_58()) return true;
    return false;
  }

  final private boolean jj_3R_107() {
    if (jj_3R_57()) return true;
    return false;
  }

  final private boolean jj_3R_106() {
    if (jj_3R_56()) return true;
    return false;
  }

  final private boolean jj_3R_105() {
    if (jj_3R_55()) return true;
    return false;
  }

  final private boolean jj_3R_104() {
    if (jj_3R_54()) return true;
    return false;
  }

  final private boolean jj_3R_41() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_103()) {
    jj_scanpos = xsp;
    if (jj_3R_104()) {
    jj_scanpos = xsp;
    if (jj_3R_105()) {
    jj_scanpos = xsp;
    if (jj_3R_106()) {
    jj_scanpos = xsp;
    if (jj_3R_107()) {
    jj_scanpos = xsp;
    if (jj_3R_108()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  final private boolean jj_3R_103() {
    if (jj_3R_53()) return true;
    return false;
  }

  final private boolean jj_3R_248() {
    if (jj_scan_token(ALL)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_155() {
    if (jj_3R_247()) return true;
    return false;
  }

  final private boolean jj_3R_120() {
    if (jj_3R_62()) return true;
    return false;
  }

  final private boolean jj_3R_247() {
    if (jj_scan_token(SOME)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  final private boolean jj_3R_246() {
    if (jj_scan_token(ANY)) return true;
    if (jj_scan_token(85)) return true;
    if (jj_3R_60()) return true;
    if (jj_scan_token(86)) return true;
    return false;
  }

  public JPQLTokenManager token_source;
  JavaCharStream jj_input_stream;
  public Token token, jj_nt;
  private int jj_ntk;
  private Token jj_scanpos, jj_lastpos;
  private int jj_la;
  public boolean lookingAhead = false;
  private boolean jj_semLA;
  private int jj_gen;
  final private int[] jj_la1 = new int[125];
  static private int[] jj_la1_0;
  static private int[] jj_la1_1;
  static private int[] jj_la1_2;
  static {
      jj_la1_0();
      jj_la1_1();
      jj_la1_2();
   }
   private static void jj_la1_0() {
      jj_la1_0 = new int[] {0x0,0x0,0x0,0x0,0x2000000,0x0,0x0,0x20,0x0,0x0,0x20,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x40,0x20,0x0,0x0,0x0,0x0,0x20,0x0,0x20000,0x20,0x0,0x40,0x20,0x0,0x0,0x0,0x0,0xfffe6000,0x0,0x0,0x0,0x0,0x0,0x20,0x6000,0x6000,0x0,0x0,0x0,0x0,0xfffe0000,0x0,0x20000000,0x0,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x1f80,0x2c0000,0x2c0000,0x180,0x2c0000,0x2c0000,0x180,0xfffe0000,0xfffe0000,0x180,0x2c6000,0x2c6000,0x2c6000,0x2c6000,0x2c6000,0x2c6000,0x1f80,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x2c0000,0x1f80,0x0,0x0,0x6000,0x6000,0x18000,0x18000,0x6000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xfffe0000,0xfffe0000,0x0,0x0,0x0,0x0,0x0,0x20,0x0,0x20,0x0,0x1800000,0x1800000,0x40,0xfffe0000,0x6000,0x6000,0x6000,0x6000,0x6000,0x0,0x0,0x80000000,};
   }
   private static void jj_la1_1() {
      jj_la1_1 = new int[] {0xc8000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x10000000,0x10000000,0x0,0x7c,0x7fc7c00,0x0,0x7c,0x0,0x0,0x7c,0x7c,0x0,0x7fc7c00,0xffffffff,0x0,0x200,0x200,0x200,0x200,0x0,0x8000000,0x0,0x200,0x7c,0x200,0x200,0xffffffff,0x200,0x0,0x200,0x0,0x7c00,0x7c00,0x7c00,0x7c00,0x7c00,0x7c00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffffff,0xffffffff,0x0,0x8fc007c,0x8fc007c,0x8fc007c,0x8fc007c,0x8fc007c,0x8fc007c,0x0,0x700007c,0x700007c,0x700007c,0x700007c,0x700007c,0x700007c,0x0,0x7fc7c00,0xfc0000,0x0,0x0,0x0,0x0,0x0,0x8fc007c,0x7c00,0x7c00,0x0,0x7c00,0x700007c,0x700007c,0x0,0x0,0x0,0x0,0xffffffff,0xffffffff,0x7c00,0x38000,0x0,0x30000,0xfc0000,0x0,0x7000000,0x0,0x7c,0x0,0x0,0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
   }
   private static void jj_la1_2() {
      jj_la1_2 = new int[] {0x0,0x1,0x2,0x4,0x0,0x1,0x1,0x0,0xd0,0x8,0x0,0x40,0x8,0x8,0x20,0x8,0xd0,0x20,0x40,0x0,0x0,0x0,0x1840000,0x0,0x0,0x0,0x0,0x40800,0x0,0x40000,0x0,0x0,0x40000,0x0,0x40000,0x40000,0x1a6bfff,0x200000,0x0,0x0,0x0,0x0,0x0,0x182b000,0x182b000,0x0,0x1840000,0x0,0x0,0x1840fff,0x0,0x0,0x0,0x0,0x1a48000,0x1a48000,0x1a48000,0x1a48000,0x1a48000,0x1a48000,0x0,0x1a60000,0x1a60000,0x0,0x1a40000,0x1a40000,0x0,0x1840fff,0x1840fff,0x0,0x1a43000,0x1a43000,0x1a43000,0x1a43000,0x1a43000,0x1a43000,0x0,0x1a40000,0x1a40000,0x1a40000,0x1a40000,0x1a40000,0x1a40000,0x0,0x0,0x240000,0x0,0x0,0x0,0x0,0x1843000,0x0,0x240000,0x1a48000,0x48000,0x0,0x1a40000,0x1840000,0x240000,0x1a60000,0x1820000,0x1a40000,0x40fff,0x1840fff,0x0,0x0,0x8000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x40fff,0x1000,0x0,0x0,0x0,0x0,0x1800000,0x1808000,0x0,};
   }
  final private JJCalls[] jj_2_rtns = new JJCalls[62];
  private boolean jj_rescan = false;
  private int jj_gc = 0;

  public JPQL(java.io.InputStream stream) {
     this(stream, null);
  }
  public JPQL(java.io.InputStream stream, String encoding) {
    try { jj_input_stream = new JavaCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
    token_source = new JPQLTokenManager(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  public void ReInit(java.io.InputStream stream) {
     ReInit(stream, null);
  }
  public void ReInit(java.io.InputStream stream, String encoding) {
    try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
    token_source.ReInit(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jjtree.reset();
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  public JPQL(java.io.Reader stream) {
    jj_input_stream = new JavaCharStream(stream, 1, 1);
    token_source = new JPQLTokenManager(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  public void ReInit(java.io.Reader stream) {
    jj_input_stream.ReInit(stream, 1, 1);
    token_source.ReInit(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jjtree.reset();
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  public JPQL(JPQLTokenManager tm) {
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  public void ReInit(JPQLTokenManager tm) {
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jjtree.reset();
    jj_gen = 0;
    for (int i = 0; i < 125; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  final private Token jj_consume_token(int kind) throws ParseException {
    Token oldToken;
    if ((oldToken = token).next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    if (token.kind == kind) {
      jj_gen++;
      if (++jj_gc > 100) {
        jj_gc = 0;
        for (int i = 0; i < jj_2_rtns.length; i++) {
          JJCalls c = jj_2_rtns[i];
          while (c != null) {
            if (c.gen < jj_gen) c.first = null;
            c = c.next;
          }
        }
      }
      return token;
    }
    token = oldToken;
    jj_kind = kind;
    throw generateParseException();
  }

  static private final class LookaheadSuccess extends java.lang.Error { }
  final private LookaheadSuccess jj_ls = new LookaheadSuccess();
  final private boolean jj_scan_token(int kind) {
    if (jj_scanpos == jj_lastpos) {
      jj_la--;
      if (jj_scanpos.next == null) {
        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
      } else {
        jj_lastpos = jj_scanpos = jj_scanpos.next;
      }
    } else {
      jj_scanpos = jj_scanpos.next;
    }
    if (jj_rescan) {
      int i = 0; Token tok = token;
      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
      if (tok != null) jj_add_error_token(kind, i);
    }
    if (jj_scanpos.kind != kind) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
    return false;
  }

  final public Token getNextToken() {
    if (token.next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    jj_gen++;
    return token;
  }

  final public Token getToken(int index) {
    Token t = lookingAhead ? jj_scanpos : token;
    for (int i = 0; i < index; i++) {
      if (t.next != null) t = t.next;
      else t = t.next = token_source.getNextToken();
    }
    return t;
  }

  final private int jj_ntk() {
    if ((jj_nt=token.next) == null)
      return (jj_ntk = (token.next=token_source.getNextToken()).kind);
    else
      return (jj_ntk = jj_nt.kind);
  }

  private java.util.Vector jj_expentries = new java.util.Vector();
  private int[] jj_expentry;
  private int jj_kind = -1;
  private int[] jj_lasttokens = new int[100];
  private int jj_endpos;

  private void jj_add_error_token(int kind, int pos) {
    if (pos >= 100) return;
    if (pos == jj_endpos + 1) {
      jj_lasttokens[jj_endpos++] = kind;
    } else if (jj_endpos != 0) {
      jj_expentry = new int[jj_endpos];
      for (int i = 0; i < jj_endpos; i++) {
        jj_expentry[i] = jj_lasttokens[i];
      }
      boolean exists = false;
      for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {
        int[] oldentry = (int[])(e.nextElement());
        if (oldentry.length == jj_expentry.length) {
          exists = true;
          for (int i = 0; i < jj_expentry.length; i++) {
            if (oldentry[i] != jj_expentry[i]) {
              exists = false;
              break;
            }
          }
          if (exists) break;
        }
      }
      if (!exists) jj_expentries.addElement(jj_expentry);
      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
    }
  }

  public ParseException generateParseException() {
    jj_expentries.removeAllElements();
    boolean[] la1tokens = new boolean[89];
    for (int i = 0; i < 89; i++) {
      la1tokens[i] = false;
    }
    if (jj_kind >= 0) {
      la1tokens[jj_kind] = true;
      jj_kind = -1;
    }
    for (int i = 0; i < 125; i++) {
      if (jj_la1[i] == jj_gen) {
        for (int j = 0; j < 32; j++) {
          if ((jj_la1_0[i] & (1< jj_gen) {
          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
          switch (i) {
            case 0: jj_3_1(); break;
            case 1: jj_3_2(); break;
            case 2: jj_3_3(); break;
            case 3: jj_3_4(); break;
            case 4: jj_3_5(); break;
            case 5: jj_3_6(); break;
            case 6: jj_3_7(); break;
            case 7: jj_3_8(); break;
            case 8: jj_3_9(); break;
            case 9: jj_3_10(); break;
            case 10: jj_3_11(); break;
            case 11: jj_3_12(); break;
            case 12: jj_3_13(); break;
            case 13: jj_3_14(); break;
            case 14: jj_3_15(); break;
            case 15: jj_3_16(); break;
            case 16: jj_3_17(); break;
            case 17: jj_3_18(); break;
            case 18: jj_3_19(); break;
            case 19: jj_3_20(); break;
            case 20: jj_3_21(); break;
            case 21: jj_3_22(); break;
            case 22: jj_3_23(); break;
            case 23: jj_3_24(); break;
            case 24: jj_3_25(); break;
            case 25: jj_3_26(); break;
            case 26: jj_3_27(); break;
            case 27: jj_3_28(); break;
            case 28: jj_3_29(); break;
            case 29: jj_3_30(); break;
            case 30: jj_3_31(); break;
            case 31: jj_3_32(); break;
            case 32: jj_3_33(); break;
            case 33: jj_3_34(); break;
            case 34: jj_3_35(); break;
            case 35: jj_3_36(); break;
            case 36: jj_3_37(); break;
            case 37: jj_3_38(); break;
            case 38: jj_3_39(); break;
            case 39: jj_3_40(); break;
            case 40: jj_3_41(); break;
            case 41: jj_3_42(); break;
            case 42: jj_3_43(); break;
            case 43: jj_3_44(); break;
            case 44: jj_3_45(); break;
            case 45: jj_3_46(); break;
            case 46: jj_3_47(); break;
            case 47: jj_3_48(); break;
            case 48: jj_3_49(); break;
            case 49: jj_3_50(); break;
            case 50: jj_3_51(); break;
            case 51: jj_3_52(); break;
            case 52: jj_3_53(); break;
            case 53: jj_3_54(); break;
            case 54: jj_3_55(); break;
            case 55: jj_3_56(); break;
            case 56: jj_3_57(); break;
            case 57: jj_3_58(); break;
            case 58: jj_3_59(); break;
            case 59: jj_3_60(); break;
            case 60: jj_3_61(); break;
            case 61: jj_3_62(); break;
          }
        }
        p = p.next;
      } while (p != null);
      } catch(LookaheadSuccess ls) { }
    }
    jj_rescan = false;
  }

  final private void jj_save(int index, int xla) {
    JJCalls p = jj_2_rtns[index];
    while (p.gen > jj_gen) {
      if (p.next == null) { p = p.next = new JJCalls(); break; }
      p = p.next;
    }
    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
  }

  static final class JJCalls {
    int gen;
    Token first;
    int arg;
    JJCalls next;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy