public static Keyword querySpecialist(ControlFrame frame, Keyword lastmove) {
    if (((Iterator)(KeyValueList.dynamicSlotValue(frame.dynamicSlots, RDBMS.SYM_STELLA_ITERATOR, null))) == null) {
      KeyValueList.setDynamicSlotValue(frame.dynamicSlots, RDBMS.SYM_STELLA_ITERATOR, RDBMS.allocateQuerySpecialistIterator(frame), null);
    }
    return (RDBMS.retrieveNextDbQuerySolution(frame, lastmove));
  }