DOI: 10.15468/dl.3ac3pc
title: Occurrence Download

description: A dataset containing 159 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 PRINTF('%04d-%02d', "year", "month") yearmonth,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, PRINTF('%04d-%02d', "year", "month"))) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, PRINTF('%04d-%02d', "year", "month"))) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, PRINTF('%04d-%02d', "year", "month"))) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, PRINTF('%04d-%02d', "year", "month"))) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, PRINTF('%04d-%02d', "year", "month"))) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, PRINTF('%04d-%02d', "year", "month"))) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.decimallatitude &gt;= 9.7893
 AND occurrence.decimallatitude &lt;= 9.86818
 AND (occurrence.decimallongitude &gt;= 98.93022 AND occurrence.decimallongitude &lt;= 99.02864)
 AND GBIF_WITHIN('MULTIPOLYGON (((98.99459 9.86818, 98.9924 9.86813, 98.99043 9.86797, 98.98853 9.8677, 98.98664 9.86731, 98.98344 9.86639, 98.98028 9.86511, 98.97784 9.86481, 98.9751 9.8642, 98.97287 9.86352, 98.97031 9.86252, 98.96843 9.86267, 98.96643 9.86272, 98.96456 9.86265, 98.96273 9.86248, 98.96082 9.86221, 98.95911 9.86186, 98.9571 9.86133, 98.95539 9.86076, 98.95291 9.85975, 98.95073 9.85866, 98.94849 9.85732, 98.94646 9.85587, 98.94445 9.85419, 98.94264 9.85242, 98.94094 9.85047, 98.93939 9.84838, 98.9384 9.84683, 98.9375 9.84523, 98.9366 9.84339, 98.93585 9.84157, 98.93421 9.83858, 98.93324 9.83635, 98.93247 9.83416, 98.93117 9.82931, 98.93073 9.8273, 98.93042 9.82519, 98.93025 9.82306, 98.93022 9.82081, 98.93032 9.81887, 98.93057 9.81675, 98.93095 9.81472, 98.93179 9.81162, 98.93293 9.80864, 98.93382 9.80678, 98.93487 9.80491, 98.93604 9.80312, 98.93728 9.80147, 98.93868 9.79985, 98.94018 9.79832, 98.94172 9.79694, 98.94341 9.79561, 98.94488 9.79459, 98.94696 9.79334, 98.94888 9.79237, 98.95085 9.79153, 98.95281 9.79084, 98.95488 9.79025, 98.95699 9.78981, 98.95904 9.78951, 98.96119 9.78934, 98.96334 9.7893, 98.96541 9.78941, 98.96755 9.78966, 98.96967 9.79004, 98.97168 9.79055, 98.97373 9.7912, 98.97573 9.79199, 98.97761 9.79287, 98.9789 9.79359, 98.98169 9.79441, 98.9839 9.79355, 98.98629 9.7928, 98.98854 9.79227, 98.99068 9.79191, 98.99312 9.79168, 98.99545 9.79163, 98.99783 9.79175, 98.99994 9.792, 99.00311 9.79264, 99.00672 9.79371, 99.00986 9.79501, 99.01134 9.79575, 99.01307 9.79675, 99.01593 9.79874, 99.01847 9.80093, 99.0196 9.80206, 99.02084 9.80345, 99.02291 9.80618, 99.02415 9.80816, 99.02521 9.81016, 99.02613 9.81221, 99.02684 9.81414, 99.02744 9.81618, 99.02793 9.81839, 99.02826 9.82056, 99.02844 9.82294, 99.02847 9.82461, 99.02838 9.82668, 99.02859 9.82898, 99.02864 9.83097, 99.02855 9.83308, 99.02834 9.83511, 99.02777 9.83816, 99.02743 9.84047, 99.02693 9.84271, 99.02604 9.84556, 99.02496 9.84819, 99.02393 9.8502, 99.02285 9.85201, 99.02144 9.85405, 99.02 9.8558, 99.01767 9.85832, 99.0161 9.85983, 99.01413 9.86145, 99.01241 9.86269, 99.01042 9.86391, 99.00823 9.86505, 99.00597 9.86601, 99.00397 9.8667, 99.00174 9.86731, 98.99942 9.86777, 98.99692 9.86807, 98.99459 9.86818)))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence."year" &gt;= 2022 AND occurrence."year" &lt;= 2024)
 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 AND occurrence."month" 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,
 PRINTF('%04d-%02d', "year", "month")

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