DOI: 10.15468/dl.8b626g
title: Occurrence Download

description: A dataset containing 2158 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.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.acceptedtaxonkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.kingdomkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.phylumkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.classkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.orderkey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.familykey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.genuskey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303') OR occurrence.specieskey IN ('7296472', '8106870', '5664309', '7390250', '5665311', '7296357', '7296559', '7296247', '7296737', '5331325', '12103372', '5663476', '5664208', '5833308', '5664087', '5665503', '7296732', '7296392', '7296623', '5331231', '5664666', '5664365', '5665303'))
 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 2158 records were derived from 699 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0036396-250802193616735/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.