DOI: 10.15468/dl.2t4mr3
title: Occurrence Download

description: A dataset containing 2870 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;= -28.95751
 AND occurrence.decimallatitude &lt;= -25.0
 AND (occurrence.decimallongitude &gt;= 14.80199 AND occurrence.decimallongitude &lt;= 19.98207)
 AND GBIF_WITHIN('POLYGON ((14.83953 -25, 14.87684 -25.09205, 14.80199 -25.29898, 14.88329 -25.56207, 14.84746 -25.61957, 14.8487 -25.72337, 14.82854 -25.74942, 14.90944 -25.85168, 14.91043 -25.93179, 14.98103 -26.08104, 14.96526 -26.13595, 14.92991 -26.13782, 14.96988 -26.19201, 14.94876 -26.3115, 15.09373 -26.40495, 15.1232 -26.4448, 15.14802 -26.57797, 15.17477 -26.58519, 15.14867 -26.68592, 15.12742 -26.62598, 15.08815 -26.63425, 15.08079 -26.69396, 15.15593 -26.85276, 15.14965 -26.90283, 15.22938 -26.92583, 15.23049 -27.0475, 15.29446 -27.3218, 15.53 -27.65133, 15.53321 -27.72756, 15.68256 -27.90426, 15.67647 -27.94376, 15.71697 -27.99983, 16.3771 -28.58471, 16.45216 -28.63323, 16.48431 -28.57128, 16.59736 -28.52622, 16.67312 -28.45976, 16.70382 -28.49449, 16.7404 -28.48095, 16.80386 -28.36612, 16.75422 -28.29944, 16.75816 -28.26425, 16.82464 -28.26453, 16.80393 -28.22134, 16.85637 -28.20665, 16.8283 -28.16975, 16.87817 -28.17203, 16.91352 -28.06268, 16.94752 -28.0727, 17.0764 -28.02682, 17.18089 -28.09947, 17.21314 -28.23207, 17.33448 -28.22288, 17.38128 -28.29591, 17.40874 -28.39927, 17.33216 -28.47588, 17.37372 -28.55962, 17.42794 -28.56957, 17.41176 -28.70544, 17.58294 -28.68021, 17.60712 -28.75566, 17.66097 -28.7723, 17.74627 -28.74035, 17.91707 -28.76485, 18.0441 -28.85839, 18.16647 -28.9019, 18.30868 -28.87999, 18.49616 -28.88826, 18.72685 -28.83243, 18.93017 -28.8562, 18.98033 -28.87636, 19.00693 -28.9263, 19.12021 -28.95751, 19.28836 -28.88309, 19.23921 -28.8116, 19.26593 -28.74264, 19.29002 -28.71969, 19.33901 -28.73747, 19.47243 -28.69272, 19.5634 -28.52841, 19.68834 -28.51598, 19.82559 -28.47671, 19.8967 -28.42772, 19.98165 -28.42235, 19.98207 -25.613, 19.92307 -25.62654, 19.91578 -25.60007, 19.74529 -25.67435, 19.69387 -25.63922, 19.56388 -25.62857, 19.54886 -25.59502, 19.39481 -25.58121, 19.33392 -25.64148, 19.21914 -25.47489, 19.07777 -25.56003, 18.56466 -25.53449, 18.56771 -25.44548, 18.21223 -25.44442, 18.09522 -25.50224, 17.73388 -25.57158, 17.56326 -25.57695, 17.41592 -25.54501, 17.32857 -25.63112, 17.32866 -25.74898, 17.15166 -25.67583, 17.10618 -25.71078, 17.07126 -25.69811, 16.96451 -25.73123, 16.96967 -25.67907, 16.89756 -25.64317, 16.82351 -25.64583, 16.8023 -25.61297, 16.69398 -25.58632, 16.56837 -25.58434, 16.52618 -25.4949, 16.46226 -25.64336, 16.40558 -25.67235, 16.39179 -25.62112, 16.4164 -25.59166, 16.37602 -25.55342, 16.2706 -25.58751, 16.337 -25.87341, 16.26469 -25.82496, 16.20043 -25.86722, 15.96369 -25.58479, 15.8871 -25.60545, 15.7732 -25, 14.83953 -25))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND LOWER(occurrence.iucnredlistcategory) IN (LOWER('CR'), LOWER('EN'), LOWER('VU'), LOWER('NT'), LOWER('LC'))
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence."year" &gt;= 2015 AND occurrence."year" &lt;= 2025)
 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 2870 records were derived from 13 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0022846-250711103210423/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.