DOI: 10.15468/dl.s749cy
title: Occurrence Download

description: A dataset containing 7587 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,
 GBIF_EQDGCODE(2, decimallatitude, decimallongitude, 0.0) eqdcellcode,
 IF(ISNULL(genuskey), NULL, SUM(COUNT(*)) OVER (
 PARTITION BY genuskey, GBIF_EQDGCODE(2, decimallatitude, decimallongitude, 0.0), PRINTF('%04d-%02d', "year", "month"))) genuscount,
 COUNT(*) occurrences,
 MIN(GBIF_TEMPORALUNCERTAINTY(eventdate, eventtime)) mintemporaluncertainty,
 MIN(COALESCE(coordinateuncertaintyinmeters, 1000)) mincoordinateuncertaintyinmeters
FROM
 occurrence
WHERE
 occurrence.basisofrecord IN ('MATERIAL_SAMPLE', 'PRESERVED_SPECIMEN')
 AND (occurrence.decimallatitude &gt;= 25.102 AND occurrence.decimallatitude &lt;= 62.39828 AND (occurrence.decimallongitude &gt;= -94.35137 AND occurrence.decimallongitude &lt;= -48.90268) AND GBIF_WITHIN('POLYGON ((-78.24515 62.39828, -82.1432 55.67307, -94.35137 58.5859, -91.36127 35.638, -91.40411 30.84039, -80.93042 25.102, -79.68136 32.30688, -66.89368 42.56534, -62.31026 44.1931, -54.94252 45.34966, -48.90268 48.21966, -67.23637 62.01276, -78.24515 62.39828))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE)
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (CAST(occurrence.taxonkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.acceptedtaxonkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.kingdomkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.phylumkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.classkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.orderkey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.familykey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.genuskey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858) OR CAST(occurrence.specieskey AS INTEGER) IN (3045786, 3045907, 3045717, 3045698, 3045676, 3045880, 3046092, 3045712, 3045962, 3046018, 3046139, 3045858))
 AND NOT GBIF_STRINGARRAYCONTAINS(occurrence.issue, 'TAXON_MATCH_FUZZY', TRUE)
 AND (occurrence.distancefromcentroidinmeters &gt;= 2000.0 OR occurrence.distancefromcentroidinmeters IS NULL)
 AND (occurrence.specieskey IS NOT NULL AND occurrence."year" IS NOT NULL AND occurrence."month" 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,
 PRINTF('%04d-%02d', "year", "month"),
 GBIF_EQDGCODE(2, decimallatitude, decimallongitude, 0.0)

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