DOI: 10.15468/dl.kd6fgw
title: Occurrence Download

description: A dataset containing 66036 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.datasetkey IN ('2dd3b5c1-2a7f-4324-83d3-d05cff85676b', 'ba8b3250-6115-4680-8c21-6129c35ba738', '773c3269-79c6-4010-9295-04c179f333ab', 'cd9e0589-187b-43c0-9692-50d8db7d0467', '4e3e00d6-6a60-401d-af5a-1a4816755f72', '0d8cc344-d880-42ec-a200-40b4ad71affd', '2e409ff6-7714-417e-89ef-678207f66071', '66551429-5e35-4848-94f5-b13bcad669a5', '1f127865-0ff5-4008-95e7-508a6e77f53d', 'e5f16d86-e225-4822-97be-a64ce17079c7', '14d5676a-2c54-4f94-9023-1e8dcd822aa0', '95d672e8-f762-11e1-a439-00145eb45e9a', 'ded7f34f-fc9b-4e5b-87dc-d3c6177a8fe0', 'bd067a4c-05b8-4def-925c-60ce83c01891', '24168b97-a6b0-41cf-9836-29110572efc6', '724ec4af-c9a3-490b-b718-a1b202437c0f', '017f23ba-bf04-4eb7-a076-04ab2e5de250', 'c186e534-5281-4d9e-a389-f0415aa70331', '43027054-3812-4599-b7bc-a01f1df5b071', 'd7cc19ba-7785-4131-ab63-3328a99ecfab', '4921f3f7-0991-49f4-8f56-91e7b9a55bf3', '3b03f113-e3da-41ba-bd98-6f0a3123b8ac', 'a0ee69cf-df3b-44d7-8b14-19c42a1532a0', '75214a8e-445a-4785-857e-5d1e06b9150d', '265475de-0fe1-42c4-93ad-5dfe804e7148', 'acf7b380-2e9d-42d2-b1f8-a802a5e9d90a', 'e0876b81-db28-4e44-891e-ae768e6bb9b5', '7a3679ef-5582-4aaa-81f0-8c2545cafc81', 'dd915a74-f2d2-4888-a62d-4a5ebeae4e0e', '7cb58a6e-6281-4274-aac2-9e8020faf00c', 'fc21cdcb-ea38-4db8-afde-3170d0ea4173', 'b73fafed-f8d0-4d6e-b7b8-1c765f94be04', '1fec2829-4ac0-4329-b448-6f768b8d3427', 'be77349b-c13d-496b-a6ac-c185c0976525', 'bdb525f6-2087-4f7f-8ab5-b5b052898996', 'e357cdec-295a-4b91-ac7d-abf5fbbc43bb', '8caeac37-59ca-4b80-99ea-a3956fccd38e', '54594d70-93cf-4bce-8232-f257077bdcc0', 'd7fd91b2-25fe-4541-8b66-b37fe38941b2', 'a1b96bad-8ef6-4fcb-9653-fb74535a97e4', 'e49a712e-ec7b-4e7d-b916-8dcabf589979', 'a4a74db9-fe84-40f3-8782-e4940416076a', '256b9877-cef3-4e8e-84e1-f23299c49655', 'f946666e-67dc-4848-9fa8-2162f3559e33', 'b47ed41a-b9a4-4108-bdb3-5a61afdf1756', '88609786-555a-4330-8826-b66d2414012c', '41e8840e-57eb-40d4-a1ac-cfda408bc871', 'd9f7b2f6-03b3-4cd3-817b-c61949d79b1d', '49be1a9a-a3f9-4e64-b029-584240fe8c34', '6318161e-024b-4cf5-b08b-1ba1c98a5c51', 'd64de6e2-5c1c-4c9d-93b3-da8049fd710b', '36f25d26-67ba-4a0b-809b-81928303831f', 'eae53f20-4e71-4fd1-a81b-cbd7236eaecd', 'd1620235-125b-45c1-903c-4951428c27a8', '74e44be3-c67d-4419-ace9-af2e42b3de14', 'a8a643de-8108-4559-976f-bad27e1eb5e0', '7d539268-815c-4ebd-bb42-70f5039d4c60', 'af0c7238-b6c5-4a4d-9fa7-7fb94516d0bc', 'da36b9f6-5acd-4eae-af23-f49be4ed330e', '71b44837-09a8-481b-a5d8-a4ff5ab966ac', '92204c07-5011-47ac-82b7-4050858a9cd0', '6e347182-a543-4e94-97be-d13b6afb9d3f', '75a099ea-438b-4756-a5a2-f70c5c287fc4', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', '50c9509d-22c7-4a22-a47d-8c48425ef4a7')
 AND (occurrence.decimallatitude &gt;= 43.71763 AND occurrence.decimallatitude &lt;= 44.17925 AND (occurrence.decimallongitude &gt;= 7.33973 AND occurrence.decimallongitude &lt;= 7.71556) AND GBIF_WITHIN('POLYGON ((7.41094 44.11522, 7.37438 43.99701, 7.33973 43.86521, 7.37635 43.71763, 7.45882 43.75997, 7.48398 43.75072, 7.49859 43.77364, 7.52892 43.78368, 7.49559 43.86904, 7.55106 43.90929, 7.65143 43.97364, 7.71556 44.08022, 7.66736 44.12637, 7.69312 44.17683, 7.63182 44.17925, 7.62261 44.15101, 7.58153 44.15458, 7.41094 44.11522))', occurrence.decimallatitude, occurrence.decimallongitude) = TRUE)
 AND occurrence.hascoordinate = TRUE
 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 66036 records were derived from 64 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0062661-250717081556266/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.