public static Keyword queryDatabaseSpecialist(ControlFrame frame, Keyword lastmove) {
    { Proposition proposition = frame.proposition;
      Vector arguments = proposition.arguments;
      Stella_Object database = Logic.argumentBoundTo((arguments.theArray)[0]);
      Stella_Object query = Logic.argumentBoundTo((arguments.theArray)[1]);

      if ((database == null) ||
          (!Stella_Object.stringP(query))) {
        return (RDBMS.KWD_TERMINAL_FAILURE);
      }
      if (Logic.testIsaP(database, RDBMS.SGT_RDBMS_SQL_DATABASE)) {
        return (RDBMS.querySqlDatabaseSpecialist(frame, lastmove));
      }
      else {
        return (RDBMS.KWD_FAILURE);
      }
    }
  }