DOI: 10.15468/dl.hn7s8t
title: Occurrence Download

description: A dataset containing 22908 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,
 countrycode countrycode,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, countrycode, PRINTF('%04d-%02d-%02d', "year", "month", "day"))) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, countrycode, PRINTF('%04d-%02d-%02d', "year", "month", "day"))) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, countrycode, PRINTF('%04d-%02d-%02d', "year", "month", "day"))) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, countrycode, PRINTF('%04d-%02d-%02d', "year", "month", "day"))) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, countrycode, PRINTF('%04d-%02d-%02d', "year", "month", "day"))) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, countrycode, 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.continent = 'EUROPE'
 AND occurrence.countrycode IN ('AT', 'CH', 'DE', 'NL', 'FR', 'GB', 'ES', 'IT', 'FI', 'UA', 'SE', 'NO', 'IS', 'BE', 'LU', 'AD', 'AX', 'PL', 'PT', 'GR', 'SK', 'SI', 'HR', 'BA', 'ME', 'CZ', 'HU', 'RO', 'BG', 'AL', 'RS')
 AND GBIF_WITHIN('POLYGON((-180 -90,180 -90,180 90,-180 90,-180 -90))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND occurrence.publishingorgkey IN ('90d71b83-ed31-44fc-bab9-a604c8e7c2b0', '7a070ba0-bafb-11d9-8e53-b8a03c50a862', 'c8d737e0-2ff8-42e8-b8fc-6b805d26fc5f', '28eb1a3f-1c15-4a95-931a-4af90ecb574d', '43cab2b0-0653-11d9-acb2-b8a03c50a862', 'bb646dff-a905-4403-a49b-6d378c2cf0d9', '2d6e0e40-2aee-11d8-aa2d-b8a03c50a862', 'da86174a-a605-43a4-a5e8-53d484152cd3', '64ee55c9-570a-42af-b7da-3f13c6b4e5a9', '94779153-206e-4a3a-a2d1-7101c7f4975d')
 AND (occurrence.taxonkey = 3029817 OR occurrence.acceptedtaxonkey = 3029817 OR occurrence.kingdomkey = 3029817 OR occurrence.phylumkey = 3029817 OR occurrence.classkey = 3029817 OR occurrence.orderkey = 3029817 OR occurrence.familykey = 3029817 OR occurrence.genuskey = 3029817 OR occurrence.specieskey = 3029817)
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL AND occurrence."month" IS NOT NULL AND occurrence."day" 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,
 PRINTF('%04d-%02d-%02d', "year", "month", "day"),
 occurrence.countrycode

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