DOI: 10.15468/dl.j23f5b
title: Occurrence Download

description: A dataset containing 7026 records in GBIF matching the query:
SELECT
 kingdom,
 kingdomkey,
 phylum,
 phylumkey,
 class,
 classkey,
 "order",
 orderkey,
 family,
 familykey,
 genus,
 genuskey,
 species,
 specieskey,
 "year",
 countrycode countrycode,
 IF(ISNULL(kingdomkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY kingdomkey, countrycode, "year")) kingdomcount,
 IF(ISNULL(phylumkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY phylumkey, countrycode, "year")) phylumcount,
 IF(ISNULL(classkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY classkey, countrycode, "year")) classcount,
 IF(ISNULL(orderkey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY orderkey, countrycode, "year")) ordercount,
 IF(ISNULL(familykey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY familykey, countrycode, "year")) familycount,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, countrycode, "year")) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.decimallatitude &gt;= -6.76193
 AND occurrence.decimallatitude &lt;= -5.40509
 AND (occurrence.decimallongitude &gt;= -51.32539 AND occurrence.decimallongitude &lt;= -49.49574)
 AND GBIF_WITHIN('POLYGON ((-50.10562 -5.85737, -50.10562 -5.76691, -50.10562 -5.67645, -50.10562 -5.586, -50.10562 -5.49554, -50.2276 -5.49554, -50.34958 -5.49554, -50.47155 -5.49554, -50.47155 -5.40509, -50.59353 -5.40509, -50.71551 -5.40509, -50.83748 -5.40509, -50.95946 -5.40509, -50.95946 -5.49554, -51.08144 -5.49554, -51.08144 -5.586, -51.20341 -5.586, -51.20341 -5.67645, -51.20341 -5.76691, -51.20341 -5.85737, -51.32539 -5.85737, -51.32539 -5.94782, -51.32539 -6.03828, -51.32539 -6.12873, -51.32539 -6.21919, -51.20341 -6.21919, -51.20341 -6.30965, -51.20341 -6.4001, -51.32539 -6.4001, -51.32539 -6.49056, -51.32539 -6.58101, -51.32539 -6.67147, -51.32539 -6.76193, -51.20341 -6.76193, -51.08144 -6.76193, -50.95946 -6.76193, -50.83748 -6.76193, -50.71551 -6.76193, -50.59353 -6.76193, -50.47155 -6.76193, -50.34958 -6.76193, -50.34958 -6.67147, -50.2276 -6.67147, -50.2276 -6.58101, -50.2276 -6.49056, -50.10562 -6.49056, -49.98365 -6.49056, -49.86167 -6.49056, -49.73969 -6.49056, -49.61772 -6.49056, -49.49574 -6.49056, -49.49574 -6.4001, -49.49574 -6.30965, -49.49574 -6.21919, -49.49574 -6.12873, -49.49574 -6.03828, -49.49574 -5.94782, -49.49574 -5.85737, -49.49574 -5.76691, -49.61772 -5.76691, -49.61772 -5.67645, -49.73969 -5.67645, -49.86167 -5.67645, -49.86167 -5.76691, -49.86167 -5.85737, -49.98365 -5.85737, -50.10562 -5.85737))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND (occurrence.taxonkey = 6 OR occurrence.acceptedtaxonkey = 6 OR occurrence.kingdomkey = 6 OR occurrence.phylumkey = 6 OR occurrence.classkey = 6 OR occurrence.orderkey = 6 OR occurrence.familykey = 6 OR occurrence.genuskey = 6 OR occurrence.specieskey = 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.occurrencestatus = 'PRESENT'
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL AND occurrence.hascoordinate = TRUE)
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",
 occurrence.countrycode

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