DOI: 10.15468/dl.frxrz8
title: Occurrence Download

description: A dataset containing 30 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.countrycode = 'UA'
 AND LOWER(occurrence.gbifid) IN (LOWER('4440457289'), LOWER('4440456938'), LOWER('2814215537'), LOWER('2992750814'), LOWER('3018869612'), LOWER('4080458481'), LOWER('4858692746'), LOWER('2609744847'), LOWER('5062594238'), LOWER('4440457032'), LOWER('4440456814'), LOWER('4858692679'), LOWER('5029071629'), LOWER('4440456579'), LOWER('4440457504'), LOWER('4858692677'), LOWER('4440456390'), LOWER('4440457420'), LOWER('4440456628'), LOWER('3018870340'), LOWER('3022841026'), LOWER('4440456835'), LOWER('4440456688'), LOWER('5139259728'), LOWER('3413680412'), LOWER('4994011037'), LOWER('3802243845'), LOWER('5177204072'), LOWER('4903830464'), LOWER('4903961183'), LOWER('4910807522'), LOWER('5198529678'), LOWER('4904262750'), LOWER('4904096364'), LOWER('4904348782'), LOWER('4911083853'), LOWER('4903915081'), LOWER('4976217124'), LOWER('4904027531'), LOWER('4904216349'), LOWER('5199132123'), LOWER('5198557641'), LOWER('3923626446'), LOWER('4440456753'), LOWER('4904272781'), LOWER('4440457390'), LOWER('4904096311'), LOWER('4904124469'), LOWER('5198374670'), LOWER('5199048249'), LOWER('4904221404'), LOWER('4903767100'), LOWER('4904053287'), LOWER('5062740665'), LOWER('5188427718'), LOWER('5199080780'), LOWER('5188422233'), LOWER('5188459299'), LOWER('5198299104'), LOWER('5199110670'), LOWER('5187746155'), LOWER('5199019041'), LOWER('5198981858'), LOWER('5199052903'), LOWER('5198481974'), LOWER('5199177392'), LOWER('2236003496'), LOWER('5153721009'), LOWER('5153741641'), LOWER('5154502718'), LOWER('5168052199'), LOWER('4994514508'), LOWER('3079548968'), LOWER('2998424607'), LOWER('5104353380'), LOWER('5187523634'), LOWER('4976219116'), LOWER('4440456421'), LOWER('3881761807'), LOWER('4924719461'), LOWER('4440456736'), LOWER('5166911616'), LOWER('5167352596'), LOWER('4924709505'), LOWER('4855846604'), LOWER('3802241958'))
 AND (CAST(occurrence.taxonkey AS INTEGER) = 6366597 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 6366597 OR CAST(occurrence.kingdomkey AS INTEGER) = 6366597 OR CAST(occurrence.phylumkey AS INTEGER) = 6366597 OR CAST(occurrence.classkey AS INTEGER) = 6366597 OR CAST(occurrence.orderkey AS INTEGER) = 6366597 OR CAST(occurrence.familykey AS INTEGER) = 6366597 OR CAST(occurrence.genuskey AS INTEGER) = 6366597 OR CAST(occurrence.specieskey AS INTEGER) = 6366597)
 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.occurrencestatus = 'PRESENT'
 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 30 records were derived from 12 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0011381-260108223611665/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.