DOI: 10.15468/dl.83pk4j
title: Occurrence Download

description: A dataset containing 900 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 PRINTF('%04d-%02d-%02d', "year", "month", "day") yearmonthday,
 GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0) eqdcellcode,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d-%02d', "year", "month", "day"))) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey = 2985000 OR occurrence.acceptedtaxonkey = 2985000 OR occurrence.kingdomkey = 2985000 OR occurrence.phylumkey = 2985000 OR occurrence.classkey = 2985000 OR occurrence.orderkey = 2985000 OR occurrence.familykey = 2985000 OR occurrence.genuskey = 2985000 OR occurrence.specieskey = 2985000)
 AND occurrence.hasgeospatialissues = FALSE
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL AND occurrence."month" IS NOT NULL AND occurrence.startdayofyear IS NOT NULL AND occurrence.hascoordinate = TRUE)
GROUP BY
 occurrence.taxonrank,
 occurrence.taxonomicstatus,
 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,
 PRINTF('%04d-%02d-%02d', "year", "month", "day"),
 GBIF_EQDGCCODE(2, decimallatitude, decimallongitude, 0.0)

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