DOI: 10.15468/dl.yng9ew
title: Occurrence Download

description: A dataset containing 247 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
FROM
 occurrence
WHERE
 occurrence.basisofrecord = 'PRESERVED_SPECIMEN'
 AND occurrence.countrycode = 'PA'
 AND (occurrence.decimallatitude &gt;= 8.96704 AND occurrence.decimallatitude &lt;= 9.35111 AND (occurrence.decimallongitude &gt;= -80.10005 AND occurrence.decimallongitude &lt;= -79.57428) AND GBIF_WITHIN('POLYGON ((-79.9149 9.2959, -79.92082 9.2966, -79.92554 9.26639, -79.9528 9.25912, -79.9718 9.13567, -80.0477 9.09931, -80.10005 9.03578, -80.08283 9.0096, -80.02772 9.01374, -80.01532 9.02062, -79.95746 8.97929, -79.92371 9.02958, -79.93128 9.05438, -79.89133 9.07436, -79.84035 9.02338, -79.78731 9.06816, -79.78111 9.0902, -79.71705 9.09778, -79.66883 9.05438, -79.58088 8.96704, -79.57428 8.97479, -79.58124 8.99584, -79.59395 9.00496, -79.60882 9.02183, -79.63058 9.03009, -79.64544 9.04575, -79.67144 9.07785, -79.68781 9.10937, -79.67661 9.11426, -79.66967 9.13157, -79.64641 9.17316, -79.66829 9.18741, -79.70582 9.12058, -79.76945 9.12981, -79.78731 9.18681, -79.81088 9.22171, -79.75535 9.26582, -79.78211 9.28533, -79.80998 9.27139, -79.81667 9.29592, -79.79493 9.32546, -79.81444 9.35111, -79.86572 9.32268, -79.90084 9.26693, -79.9149 9.2959))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE)
 AND occurrence.hascoordinate = TRUE
 AND occurrence.hasgeospatialissues = FALSE
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.acceptedtaxonkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.kingdomkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.phylumkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.classkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.orderkey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.familykey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.genuskey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725) OR occurrence.specieskey IN (587, 119, 11881065, 121, 120, 1103, 494, 1167, 1069, 1162, 1104, 1307, 495, 538, 1164, 1153, 1165, 537, 9315275, 1313, 1068, 1105, 497, 1306, 1166, 589, 1310, 888, 549, 499, 1308, 1106, 773, 889, 496, 498, 547, 1067, 1305, 772, 11733052, 11500725))
 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 247 records were derived from 13 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0052515-250525065834625/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.