DOI: 10.15468/dl.9vb5kz
title: Occurrence Download

description: A dataset containing 196 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 "year",
 countrycode countrycode,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, countrycode, "year")) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, countrycode, "year")) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, countrycode, "year")) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, countrycode, "year")) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, countrycode, "year")) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, countrycode, "year")) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.basisofrecord IN ('OBSERVATION', 'HUMAN_OBSERVATION')
 AND occurrence.countrycode = 'AT'
 AND (occurrence.level0gid = 'AUT.6.8_2' OR occurrence.level1gid = 'AUT.6.8_2' OR occurrence.level2gid = 'AUT.6.8_2' OR occurrence.level3gid = 'AUT.6.8_2')
 AND (occurrence.decimallatitude &gt;= 47.45033 AND occurrence.decimallatitude &lt;= 47.53125 AND (occurrence.decimallongitude &gt;= 13.95838 AND occurrence.decimallongitude &lt;= 14.11716) AND GBIF_WITHIN('POLYGON ((13.9743 47.4625, 13.99046 47.45033, 14.05 47.48871, 14.11716 47.49883, 14.06454 47.53125, 13.95838 47.47574, 13.9743 47.4625))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE OR GBIF_WITHIN('POLYGON((-180 -90,180 -90,180 90,-180 90,-180 -90))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE OR GBIF_WITHIN('POLYGON((13.97352 47.46427,13.98365 47.44018,14.12095 47.50523,14.07323 47.54394,13.97352 47.46427))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE OR GBIF_WITHIN('POLYGON((13.97285 47.50532,13.95399 47.3974,14.10285 47.44864,14.14172 47.54618,13.97285 47.50532))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE)
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND LOWER(occurrence.iucnredlistcategory) IN (LOWER('NT'), LOWER('VU'), LOWER('EN'), LOWER('CR'))
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence."year" &gt;= 2015 AND occurrence."year" &lt;= 2025)
 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 (occurrence.specieskey IS NOT NULL AND occurrence."year" 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,
 occurrence."year",
 occurrence.countrycode

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