code: public String buildWhere(String field, ColumnValue value) {
  		String where;
  		if (value != null) {
  			if (value.getValue() != null && value.getTolerance() != null) {
  				if (!(value.getValue() instanceof Number)) {
  					throw new GeoPackageException(
  							"Field value is not a number and can not use a tolerance, Field: "
  									+ field + ", Value: " + value);
  				}
  				String quotedField = CoreSQLUtils.quoteWrap(field);
  				where = quotedField + " >= ? AND " + quotedField + " <= ?";
  			} else {
  				where = buildWhere(field, value.getValue());
  			}
  		} else {
  			where = buildWhere(field, null, null);
  		}
  		return where;
  	}
docs: Build where (or selection) statement for a single field
  
  @param field
  field name
  @param value
  column value
  @return where clause