DOI: 10.15468/dl.yduypv
title: Occurrence Download

description: A dataset containing 2472 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;= 54.37047
 AND occurrence.decimallatitude &lt;= 54.47629
 AND (occurrence.decimallongitude &gt;= 18.47733 AND occurrence.decimallongitude &lt;= 18.56485)
 AND GBIF_WITHIN('POLYGON ((18.53605 54.47538, 18.49472 54.46059, 18.4893 54.45359, 18.49325 54.42287, 18.48885 54.42151, 18.48365 54.41756, 18.47733 54.4109, 18.4788 54.40175, 18.48828 54.39904, 18.5111 54.37973, 18.52058 54.38108, 18.52702 54.38052, 18.52612 54.37047, 18.53922 54.37171, 18.55616 54.38763, 18.56485 54.39249, 18.56169 54.39847, 18.5574 54.40593, 18.55446 54.4144, 18.56034 54.42592, 18.55367 54.43665, 18.5478 54.44771, 18.54543 54.45991, 18.5513 54.46691, 18.55006 54.47233, 18.54159 54.47629, 18.53605 54.47538))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey = 7707728 OR occurrence.acceptedtaxonkey = 7707728 OR occurrence.kingdomkey = 7707728 OR occurrence.phylumkey = 7707728 OR occurrence.classkey = 7707728 OR occurrence.orderkey = 7707728 OR occurrence.familykey = 7707728 OR occurrence.genuskey = 7707728 OR occurrence.specieskey = 7707728)
 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)
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 2472 records were derived from 15 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0007449-250525065834625/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.