code: public GriddedTile query(String tableName, long tileId) {
  		GriddedTile griddedTile = null;
  		try {
  			QueryBuilder<GriddedTile, Long> qb = queryBuilder();
  			qb.where().eq(GriddedTile.COLUMN_TABLE_NAME, tableName).and()
  					.eq(GriddedTile.COLUMN_TABLE_ID, tileId);
  			PreparedQuery<GriddedTile> query = qb.prepare();
  			griddedTile = queryForFirst(query);
  		} catch (SQLException e) {
  			throw new GeoPackageException(
  					"Failed to query for Gridded Tile objects by Table Name: "
  							+ tableName + ", Tile Id: " + tileId, e);
  		}
  		return griddedTile;
  	}
docs: Query by table name and table id
  
  @param tableName
  table name
  @param tileId
  tile id
  @return gridded tile