DOI: 10.15468/dl.du7853
title: Occurrence Download

description: A dataset containing 64114 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;= 4.2432
 AND occurrence.decimallatitude &lt;= 4.87252
 AND (occurrence.decimallongitude &gt;= -74.03261 AND occurrence.decimallongitude &lt;= -73.18924)
 AND GBIF_WITHIN('POLYGON ((-73.44998 4.74249, -73.53895 4.71871, -73.5918 4.78654, -73.66975 4.83413, -73.78501 4.85511, -73.82656 4.861, -73.85744 4.85836, -73.87829 4.87252, -73.91382 4.85013, -73.99362 4.76595, -74.00758 4.73505, -74.00542 4.66772, -74.02528 4.66039, -74.02787 4.6496, -74.03261 4.63751, -74.01362 4.63277, -73.99765 4.61636, -73.98902 4.6319, -73.95733 4.65426, -73.94979 4.64056, -73.93541 4.64056, -73.94237 4.62448, -73.93061 4.61453, -73.91417 4.59466, -73.90595 4.51518, -73.90276 4.42626, -73.87193 4.38045, -73.84109 4.40688, -73.80938 4.39983, -73.79088 4.36019, -73.78208 4.29853, -73.76534 4.28003, -73.70984 4.28091, -73.65378 4.27117, -73.61311 4.2432, -73.4632 4.27915, -73.41211 4.34521, -73.36894 4.37957, -73.34692 4.37693, -73.29935 4.39454, -73.22007 4.45797, -73.18924 4.53196, -73.19717 4.56367, -73.22888 4.68876, -73.22095 4.73456, -73.35661 4.80151, -73.44998 4.74249))', 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.specieskey IS NOT NULL 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 64114 records were derived from 256 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0004823-250914085247600/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.