DOI: 10.15468/dl.swnrau
title: Occurrence Download

description: A dataset containing 220 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;= 15.79863
 AND occurrence.decimallatitude &lt;= 15.92999
 AND (occurrence.decimallongitude &gt;= 104.9109 AND occurrence.decimallongitude &lt;= 105.08269)
 AND GBIF_WITHIN('MULTIPOLYGON (((105.00251 15.92226, 104.99179 15.92825, 104.9811 15.92999, 104.96449 15.92761, 104.95444 15.92281, 104.94199 15.92458, 104.92857 15.9211, 104.91885 15.9137, 104.91266 15.90333, 104.9109 15.89148, 104.91382 15.87985, 104.92215 15.86908, 104.93948 15.85861, 104.95162 15.85634, 104.96463 15.85897, 104.96816 15.84689, 104.9758 15.83748, 104.99086 15.8299, 105.00669 15.82929, 105.01027 15.8256, 105.01668 15.81306, 105.02739 15.8045, 105.04861 15.79863, 105.05786 15.79949, 105.0665 15.80283, 105.07584 15.81067, 105.08151 15.82131, 105.08269 15.83323, 105.07921 15.84471, 105.0653 15.86308, 105.06262 15.87216, 105.05655 15.88085, 105.04647 15.8878, 105.03578 15.89053, 105.02744 15.9031, 105.02123 15.9076, 105.01313 15.91081, 105.00251 15.92226)))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 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.classificationdetails['d7dddbf4-2cf0-4f39-9b2a-bb099caae36c']['specieskey'] &lt;&gt; '' 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 220 records were derived from 6 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0004743-260208012135463/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.