public static SelectResults execute(ExecutablePool pool, String queryPredicate,
      Object[] queryParams) {
    AbstractOp op;

    if (queryParams != null && queryParams.length > 0) {
      op = new QueryOpImpl(queryPredicate, queryParams);
    } else {
      op = new QueryOpImpl(queryPredicate);
    }
    return (SelectResults) pool.execute(op);
  }
Does a region query on a server using connections from the given pool to communicate with the
server.

@param pool the pool to use to communicate with the server.
@param queryPredicate A query language boolean query predicate
@return A <code>SelectResults</code> containing the values that match the
        <code>queryPredicate</code>.
geode-core/src/main/java/org/apache/geode/cache/client/internal/QueryOp.java