DOI: 10.15468/dl.kqkg3t
title: Occurrence Download

description: A dataset containing 47 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;= -3.79444
 AND occurrence.decimallatitude &lt;= -3.07944
 AND (occurrence.decimallongitude &gt;= -80.27898000000005 AND occurrence.decimallongitude &lt;= -79.42551000000003)
 AND GBIF_WITHIN('POLYGON ((-80.0325499999999 -3.24052, -80.0336299999999 -3.23297, -80.0347200000001 -3.22973, -80.13199000000009 -3.37216, -80.21522000000004 -3.33872, -80.27898000000005 -3.3808, -80.23791000000006 -3.45416, -80.19792000000007 -3.48006, -80.18265999999994 -3.54983, -80.20308 -3.57973, -80.16632000000004 -3.63545, -80.1281899999999 -3.68437, -80.09823000000006 -3.71155, -79.94842999999992 -3.63001, -79.84493999999995 -3.79444, -79.67063000000007 -3.76319, -79.56033000000002 -3.72786, -79.42551000000003 -3.53759, -79.43504000000007 -3.49138, -79.5576000000001 -3.41254, -79.70468000000005 -3.36224, -79.7482500000001 -3.32418, -79.68832999999995 -3.30379, -79.60798999999997 -3.11752, -79.87080999999989 -3.07944, -80.0325499999999 -3.24052))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND (CAST(occurrence.taxonkey AS INTEGER) = 1458 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 1458 OR CAST(occurrence.kingdomkey AS INTEGER) = 1458 OR CAST(occurrence.phylumkey AS INTEGER) = 1458 OR CAST(occurrence.classkey AS INTEGER) = 1458 OR CAST(occurrence.orderkey AS INTEGER) = 1458 OR CAST(occurrence.familykey AS INTEGER) = 1458 OR CAST(occurrence.genuskey AS INTEGER) = 1458 OR CAST(occurrence.specieskey AS INTEGER) = 1458)
 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)
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 47 records were derived from 2 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0003682-251120083545085/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.