DOI: 10.15468/dl.vxz26d
title: Occurrence Download

description: A dataset containing 28921 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.continent = 'ASIA'
 AND occurrence.countrycode IN ('TW', 'CN')
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (CAST(occurrence.taxonkey AS INTEGER) = 44 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 44 OR CAST(occurrence.kingdomkey AS INTEGER) = 44 OR CAST(occurrence.phylumkey AS INTEGER) = 44 OR CAST(occurrence.classkey AS INTEGER) = 44 OR CAST(occurrence.orderkey AS INTEGER) = 44 OR CAST(occurrence.familykey AS INTEGER) = 44 OR CAST(occurrence.genuskey AS INTEGER) = 44 OR CAST(occurrence.specieskey AS INTEGER) = 44)
 AND (occurrence."year" &gt;= 2024 AND occurrence."year" &lt;= 2024 OR occurrence."year" &gt;= 2023 AND occurrence."year" &lt;= 2023 OR occurrence."year" &gt;= 2022 AND occurrence."year" &lt;= 2022 OR occurrence."year" &gt;= 2021 AND occurrence."year" &lt;= 2021 OR occurrence."year" &gt;= 2020 AND occurrence."year" &lt;= 2020 OR occurrence."year" &gt;= 2019 AND occurrence."year" &lt;= 2019 OR occurrence."year" &gt;= 2018 AND occurrence."year" &lt;= 2018 OR occurrence."year" &gt;= 2017 AND occurrence."year" &lt;= 2017 OR occurrence."year" &gt;= 2016 AND occurrence."year" &lt;= 2016 OR occurrence."year" &gt;= 2015 AND occurrence."year" &lt;= 2015 OR occurrence."year" &gt;= 2025 AND occurrence."year" &lt;= 2025)
 AND occurrence.hasgeospatialissues = FALSE
 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 28921 records were derived from 293 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0065820-251120083545085/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.