public CompiledSelect getSelect() {
    return (CompiledSelect) compiledQuery;
  }
Returns the CompiledSelect if this query consists of only a SELECT expression (possibly with
IMPORTS as well). Otherwise, returns null
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQuery.java