DOI: 10.15468/dl.wurd85
title: Occurrence Download

description: A dataset containing 1638 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 = 'FR'
 AND (occurrence.level0gid = 'FRA.4_1' OR occurrence.level1gid = 'FRA.4_1' OR occurrence.level2gid = 'FRA.4_1' OR occurrence.level3gid = 'FRA.4_1')
 AND occurrence.occurrencestatus = 'PRESENT'
 AND (occurrence.taxonkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.acceptedtaxonkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.kingdomkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.phylumkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.classkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.orderkey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.familykey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.genuskey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888') OR occurrence.specieskey IN ('1313', '1103', '1104', '494', '495', '1105', '496', '497', '1106', '498', '499', '1107', '537', '538', '1153', '547', '1162', '548', '549', '550', '1163', '1165', '1166', '1167', '1305', '1067', '1306', '1307', '1308', '1069', '587', '1310', '588', '589', '1311', '1312', '590', '9315275', '890', '774', '889', '773', '772', '888'))
 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 1638 records were derived from 99 constituent datasets; see https://api.gbif.org/v1/occurrence/download/0067899-250717081556266/datasets/export for details.
 
Data from some individual datasets included in this download may be licensed under less restrictive terms.