DOI: 10.15468/dl.73vf3b
title: Occurrence Download

description: A dataset containing 2129 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 "year",
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, "year")) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, "year")) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, "year")) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, "year")) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, "year")) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, "year")) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.basisofrecord = 'HUMAN_OBSERVATION'
 AND GBIF_WITHIN('POLYGON((-110 -60,-30 -60,-30 25,-110 25,-110 -60))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND (GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_OUT_OF_RANGE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_REPROJECTION_FAILED', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_REPROJECTION_SUSPICIOUS', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_ACCURACY_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_UNCERTAINTY_METERS_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COORDINATE_PRECISION_UNCERTAINTY_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'FOOTPRINT_WKT_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_COORDINATE_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COUNTRY_DERIVED_FROM_COORDINATES', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_COORDINATE_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_COUNTRY_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_DERIVED_FROM_COUNTRY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'CONTINENT_DERIVED_FROM_COORDINATES', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_SWAPPED_COORDINATE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_NEGATED_LONGITUDE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'PRESUMED_NEGATED_LATITUDE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'RECORDED_DATE_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'RECORDED_DATE_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_FUZZY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_HIGHERRANK', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_AGGREGATE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_SCIENTIFIC_NAME_ID_IGNORED', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_TAXON_CONCEPT_ID_IGNORED', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_TAXON_ID_IGNORED', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'SCIENTIFIC_NAME_ID_NOT_FOUND', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_CONCEPT_ID_NOT_FOUND', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_ID_NOT_FOUND', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'SCIENTIFIC_NAME_AND_ID_INCONSISTENT', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_NONE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_NAME_AND_ID_AMBIGUOUS', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'DEPTH_NOT_METRIC', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'DEPTH_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'DEPTH_MIN_MAX_SWAPPED', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'DEPTH_NON_NUMERIC', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'ELEVATION_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'ELEVATION_NOT_METRIC', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'MODIFIED_DATE_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'IDENTIFIED_DATE_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'BASIS_OF_RECORD_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TYPE_STATUS_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'REFERENCES_URI_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INTERPRETATION_ERROR', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INDIVIDUAL_COUNT_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INDIVIDUAL_COUNT_CONFLICTS_WITH_OCCURRENCE_STATUS', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'OCCURRENCE_STATUS_UNPARSABLE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'OCCURRENCE_STATUS_INFERRED_FROM_INDIVIDUAL_COUNT', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'OCCURRENCE_STATUS_INFERRED_FROM_BASIS_OF_RECORD', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'GEOREFERENCED_DATE_UNLIKELY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'GEOREFERENCED_DATE_INVALID', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'AMBIGUOUS_INSTITUTION', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'AMBIGUOUS_COLLECTION', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INSTITUTION_MATCH_NONE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COLLECTION_MATCH_NONE', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INSTITUTION_MATCH_FUZZY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'COLLECTION_MATCH_FUZZY', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'INSTITUTION_COLLECTION_MISMATCH', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'POSSIBLY_ON_LOAN', TRUE) OR GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'DIFFERENT_OWNER_INSTITUTION', TRUE))
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.acceptedtaxonkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.kingdomkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.phylumkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.classkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.orderkey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.familykey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.genuskey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617') OR occurrence.specieskey IN ('2487672', '2487701', '2487700', '2487709', '2487708', '9226874', '2487626', '2487653', '2487634', '5230512', '5230514', '5230515', '5230516', '5230513', '2487740', '2487668', '2487666', '2487670', '6101077', '2487747', '2487754', '2487755', '5230518', '5230517', '5230519', '5230520', '5230521', '5230524', '5230528', '5230527', '2487763', '5230539', '5230537', '5230538', '7467919', '2487777', '2487778', '10944765', '2487706', '2487766', '2487772', '2487765', '2487775', '2487771', '8415063', '8338270', '8381098', '7508852', '8102670', '2487617', '2487618', '9283617'))
 AND (occurrence."year" &gt;= 1902 AND occurrence."year" &lt;= 2025)
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_FUZZY', TRUE)
 AND (occurrence.distancefromcentroidinmeters &gt;= 2000.0 OR occurrence.distancefromcentroidinmeters IS NULL)
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL)
GROUP BY
 occurrence.kingdom,
 occurrence.kingdomkey,
 occurrence.phylum,
 occurrence.phylumkey,
 occurrence.class,
 occurrence.classkey,
 occurrence."order",
 occurrence.orderkey,
 occurrence.family,
 occurrence.familykey,
 occurrence.genus,
 occurrence.genuskey,
 occurrence.species,
 occurrence.specieskey,
 occurrence."year"

 The dataset's 2129 records were derived from 146 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0010194-251025141854904/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.