public static QueryIterator findCachedQuery(Symbol queryid) {
    { List queries = ((List)(Logic.$INLINE_QUERY_CACHE$.lookup(queryid)));

      if (queries != null) {
        return (((QueryIterator)(queries.pop())));
      }
      else {
        return (null);
      }
    }
  }