DOI: 10.15468/dl.ht65nj
title: Occurrence Download

description: A dataset containing 6988 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 "year",
 countrycode countrycode,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, countrycode, "year")) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, countrycode, "year")) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, countrycode, "year")) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, countrycode, "year")) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, countrycode, "year")) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, countrycode, "year")) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.countrycode = 'US'
 AND occurrence.datasetkey IN ('6ac3f774-d9fb-4796-b3e9-92bf6c81c084', '4fa7b334-ce0d-4e88-aaae-2e0c138d049e', '50c9509d-22c7-4a22-a47d-8c48425ef4a7', '6ff8b3b0-ef0f-4f79-a310-5a5615c6aa0b', '516eb7c0-3586-4dfc-bc18-c1fc1e765b7f', '8bfd90da-4ab9-40a2-8c96-bd7c2c9e9fc5', '956b0a07-2e0d-4e82-bb01-c78ad3f986e1', '8a863029-f435-446a-821e-275f4f641165', 'b1047888-ae52-4179-9dd5-5448ea342a24', '36f15a36-6b45-442e-9c31-cd633423aee0', 'afdb36af-70e2-4553-bd9b-c129f212cfdc')
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (CAST(occurrence.taxonkey AS INTEGER) = 212 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 212 OR CAST(occurrence.kingdomkey AS INTEGER) = 212 OR CAST(occurrence.phylumkey AS INTEGER) = 212 OR CAST(occurrence.classkey AS INTEGER) = 212 OR CAST(occurrence.orderkey AS INTEGER) = 212 OR CAST(occurrence.familykey AS INTEGER) = 212 OR CAST(occurrence.genuskey AS INTEGER) = 212 OR CAST(occurrence.specieskey AS INTEGER) = 212)
 AND (occurrence."year" &gt;= 2019 AND occurrence."year" &lt;= 2025)
 AND occurrence.hasgeospatialissues = FALSE
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_FUZZY', TRUE)
 AND (occurrence.distancefromcentroidinmeters &gt;= 2000.0 OR occurrence.distancefromcentroidinmeters IS NULL)
 AND NOT occurrence.basisofrecord IN ('FOSSIL_SPECIMEN', 'LIVING_SPECIMEN')
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL AND occurrence.hascoordinate = TRUE)
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",
 occurrence.countrycode

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