DOI: 10.15468/dl.rcyezs
title: Occurrence Download

description: A dataset containing 1933 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.countrycode = 'BR'
 AND (occurrence.decimallatitude &gt;= -33.29396 AND occurrence.decimallatitude &lt;= 5.25971 AND (occurrence.decimallongitude &gt;= -74.33681 AND occurrence.decimallongitude &lt;= -34.70995) AND GBIF_WITHIN('POLYGON ((-35.38508 -5.27437, -37.3518 -4.68166, -40.019 -2.90353, -43.38667 -2.3647, -44.7068 -1.87975, -45.46116 -1.36787, -47.32011 -0.55963, -48.64024 -0.29021, -50.09507 0.57191, -49.90648 1.4071, -49.8526 1.94592, -50.39143 2.05369, -50.76861 2.45781, -51.28049 3.99347, -51.79238 4.45147, -52.78921 5.20583, -53.4358 2.29616, -54.72899 2.40393, -55.75276 2.51169, -58.7702 1.27239, -59.76703 2.05369, -59.84785 3.61629, -59.76703 4.28982, -59.95562 5.20583, -60.87163 5.25971, -62.03011 4.02041, -62.46117 4.15512, -64.89354 4.3572, -63.98141 2.26466, -65.26913 1.0306, -66.44953 0.86963, -67.41533 1.94273, -69.66883 1.72811, -70.09807 -0.0425, -70.09807 -4.17393, -72.51254 -4.9251, -73.53198 -6.69572, -74.33681 -7.17861, -73.37102 -9.05653, -72.61985 -9.70039, -71.22482 -10.12963, -70.15173 -10.82714, -68.22015 -11.14907, -66.66416 -10.45156, -65.43009 -9.96866, -65.48374 -11.471, -64.41065 -12.5441, -62.58638 -13.02699, -61.51328 -13.56354, -60.33287 -15.2805, -60.0646 -16.3536, -58.40129 -16.62188, -58.25325 -17.294, -57.96325 -17.60333, -57.63459 -18.106, -57.75059 -18.91799, -58.11792 -19.67199, -57.88481 -20.62074, -57.9357 -22.30033, -56.30702 -22.45301, -55.59447 -23.67453, -54.37295 -24.0817, -54.57654 -25.35411, -53.55861 -26.37204, -54.52564 -27.44087, -56.05254 -28.20432, -57.27405 -29.73121, -56.6124 -30.49466, -55.79805 -31.15631, -54.37295 -31.86886, -53.45682 -32.42872, -53.60951 -33.29396, -48.72021 -28.42623, -48.56957 -26.13654, -48.50932 -25.38335, -47.42473 -24.87118, -46.49077 -23.99749, -44.3525 -23.43322, -42.15242 -22.85264, -40.60841 -21.70877, -38.71788 -17.70084, -38.71788 -13.46604, -37.45253 -11.1933, -35.19297 -9.05425, -34.70995 -7.56757, -35.38508 -5.27437))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE)
 AND (CAST(occurrence.taxonkey AS INTEGER) = 2398 OR CAST(occurrence.acceptedtaxonkey AS INTEGER) = 2398 OR CAST(occurrence.kingdomkey AS INTEGER) = 2398 OR CAST(occurrence.phylumkey AS INTEGER) = 2398 OR CAST(occurrence.classkey AS INTEGER) = 2398 OR CAST(occurrence.orderkey AS INTEGER) = 2398 OR CAST(occurrence.familykey AS INTEGER) = 2398 OR CAST(occurrence.genuskey AS INTEGER) = 2398 OR CAST(occurrence.specieskey AS INTEGER) = 2398)
 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.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 1933 records were derived from 243 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0063443-250920141307145/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.