DOI: 10.15468/dl.w7dfaj
title: Occurrence Download

description: A dataset containing 910 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;= 4.85792
 AND occurrence.decimallatitude &lt;= 4.90669
 AND (occurrence.decimallongitude &gt;= -52.27741 AND occurrence.decimallongitude &lt;= -52.24457)
 AND GBIF_WITHIN('POLYGON ((-52.27121 4.90669, -52.27318 4.9012, -52.27332 4.89359, -52.27332 4.89161, -52.27572 4.88823, -52.27388 4.88287, -52.27713 4.87963, -52.27741 4.87357, -52.27332 4.86596, -52.27022 4.86074, -52.2698 4.85863, -52.26514 4.85792, -52.25937 4.85948, -52.25711 4.86046, -52.25584 4.86258, -52.25345 4.86384, -52.2502 4.86638, -52.24893 4.86878, -52.24457 4.87695, -52.24513 4.88118, -52.2471 4.88696, -52.25232 4.89063, -52.25796 4.89443, -52.26176 4.89852, -52.26388 4.90303, -52.26599 4.90543, -52.27121 4.90669))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (CAST(occurrence.taxonkey AS INTEGER) = 6 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 6 OR CAST(occurrence.kingdomkey AS INTEGER) = 6 OR CAST(occurrence.phylumkey AS INTEGER) = 6 OR CAST(occurrence.classkey AS INTEGER) = 6 OR CAST(occurrence.orderkey AS INTEGER) = 6 OR CAST(occurrence.familykey AS INTEGER) = 6 OR CAST(occurrence.genuskey AS INTEGER) = 6 OR CAST(occurrence.specieskey AS INTEGER) = 6)
 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 910 records were derived from 24 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0026303-250827131500795/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.