DOI: 10.15468/dl.m3maut
title: Occurrence Download

description: A dataset containing 27 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.decimallatitude &gt;= 44.07474
 AND occurrence.decimallatitude &lt;= 44.26081
 AND (occurrence.decimallongitude &gt;= 5.10845 AND occurrence.decimallongitude &lt;= 5.39186)
 AND GBIF_WITHIN('POLYGON ((5.14853 44.14917, 5.22868 44.13772, 5.32888 44.07474, 5.37703 44.10753, 5.39186 44.1463, 5.37703 44.19327, 5.32029 44.23219, 5.28594 44.2465, 5.2201 44.26081, 5.16284 44.25223, 5.11704 44.20928, 5.10845 44.18066, 5.11131 44.15489, 5.14853 44.14917))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (CAST(occurrence.taxonkey AS INTEGER) = 2882316 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 2882316 OR CAST(occurrence.kingdomkey AS INTEGER) = 2882316 OR CAST(occurrence.phylumkey AS INTEGER) = 2882316 OR CAST(occurrence.classkey AS INTEGER) = 2882316 OR CAST(occurrence.orderkey AS INTEGER) = 2882316 OR CAST(occurrence.familykey AS INTEGER) = 2882316 OR CAST(occurrence.genuskey AS INTEGER) = 2882316 OR CAST(occurrence.specieskey AS INTEGER) = 2882316)
 AND (occurrence."year" &gt;= 1992 AND occurrence."year" &lt;= 2026)
 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)
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 27 records were derived from 14 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0012350-260108223611665/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.