code: public ResultSet executeQuery(String sql) throws SQLException {
      if (executeInternal(sql, fetchSize, Statement.NO_GENERATED_KEYS)) {
        return results.getResultSet();
      }
      return SelectResultSet.createEmptyResultSet();
    }
docs: executes a select query.
  
  @param sql the query to send to the server
  @return a result set
  @throws SQLException if something went wrong