code: public static List<List<Object>> queryResults(Connection connection,
  			String sql, String[] args, GeoPackageDataType[] dataTypes,
  			Integer limit) {
  		ResultSetResult result = wrapQuery(connection, sql, args);
  		List<List<Object>> results = ResultUtils.buildResults(result,
  				dataTypes, limit);
  		return results;
  	}
docs: Query for values up to the limit
  
  @param connection
  connection
  @param sql
  sql statement
  @param args
  arguments
  @param dataTypes
  column data types
  @param limit
  result row limit
  @return results
  @since 3.1.0