-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.gbif.occurrences`
(
  gbifid STRING,
  datasetkey STRING,
  occurrenceid STRING,
  kingdom STRING,
  phylum STRING,
  class STRING,
  `order` STRING,
  family STRING,
  genus STRING,
  species STRING,
  infraspecificepithet STRING,
  taxonrank STRING,
  scientificname STRING,
  verbatimscientificname STRING,
  verbatimscientificnameauthorship STRING,
  countrycode STRING,
  locality STRING,
  stateprovince STRING,
  occurrencestatus STRING,
  individualcount INT64,
  publishingorgkey STRING,
  decimallatitude FLOAT64,
  decimallongitude FLOAT64,
  coordinateuncertaintyinmeters FLOAT64,
  coordinateprecision FLOAT64,
  elevation FLOAT64,
  elevationaccuracy FLOAT64,
  depth FLOAT64,
  depthaccuracy FLOAT64,
  eventdate TIMESTAMP,
  day INT64,
  month INT64,
  year INT64,
  taxonkey INT64,
  specieskey INT64,
  basisofrecord STRING,
  institutioncode STRING,
  collectioncode STRING,
  catalognumber STRING,
  recordnumber STRING,
  identifiedby STRUCT<`array` ARRAY<STRUCT<array_element STRING>>>,
  dateidentified TIMESTAMP,
  license STRING,
  rightsholder STRING,
  recordedby STRUCT<`array` ARRAY<STRUCT<array_element STRING>>>,
  typestatus STRUCT<`array` ARRAY<STRUCT<array_element STRING>>>,
  establishmentmeans STRING,
  lastinterpreted TIMESTAMP,
  mediatype STRUCT<`array` ARRAY<STRUCT<array_element STRING>>>,
  issue STRUCT<`array` ARRAY<STRUCT<array_element STRING>>>
)
OPTIONS(
  description="Evidence of the occurrence of a species (or other taxon) at a particular place on a specified date."
);

INSERT INTO `bigquery-public-data.gbif.occurrences` (gbifid, datasetkey, occurrenceid, kingdom, phylum, class, order, family, genus, species, infraspecificepithet, taxonrank, scientificname, verbatimscientificname, verbatimscientificnameauthorship, countrycode, locality, stateprovince, occurrencestatus, individualcount, publishingorgkey, decimallatitude, decimallongitude, coordinateuncertaintyinmeters, coordinateprecision, elevation, elevationaccuracy, depth, depthaccuracy, eventdate, day, month, year, taxonkey, specieskey, basisofrecord, institutioncode, collectioncode, catalognumber, recordnumber, identifiedby, dateidentified, license, rightsholder, recordedby, typestatus, establishmentmeans, lastinterpreted, mediatype, issue) VALUES ('1115471771', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', 'http://pifh.fr/occtax/3b67afed-39bf-4c08-866b-69a74b7e3a43', 'Plantae', 'Tracheophyta', 'Magnoliopsida', 'Fabales', 'Fabaceae', 'Medicago', 'Medicago minima', NULL, 'SPECIES', 'Medicago minima (L.) L.', 'Medicago minima (L.) L., 1754', NULL, 'FR', NULL, NULL, 'PRESENT', NULL, '1928bdf0-f5d2-11dc-8c12-b8a03c50a862', 44.46759, 4.19429, 5000.0, nan, nan, nan, nan, nan, '2009-04-05 00:00:00+00:00', 5, 4, 2009, 2965572, 8073758, 'HUMAN_OBSERVATION', NULL, 'Données d''observation flore du réseau des CBN issues du SI de la FCBN', '3675656', NULL, {'array': '[]'}, 'NaT', 'CC_BY_4_0', NULL, {'array': "[{'array_element': 'NSP (NSP)'}]"}, {'array': '[]'}, NULL, '2024-01-25 09:19:18.262000+00:00', {'array': '[]'}, {'array': "[{'array_element': 'GEODETIC_DATUM_ASSUMED_WGS84'}\n {'array_element': 'CONTINENT_DERIVED_FROM_COORDINATES'}\n {'array_element': 'TAXON_MATCH_TAXON_ID_IGNORED'}]"}), ('1115227698', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', 'http://cbnmc.fr/occtax/1f890b7a-5a1d-450d-a871-ed88c67a7a92', 'Plantae', 'Tracheophyta', 'Magnoliopsida', 'Saxifragales', 'Crassulaceae', 'Petrosedum', 'Petrosedum rupestre', NULL, 'SPECIES', 'Sedum rupestre L.', 'Sedum rupestre L., 1753', NULL, 'FR', NULL, NULL, 'PRESENT', NULL, '1928bdf0-f5d2-11dc-8c12-b8a03c50a862', 44.92331, 2.55644, 5000.0, nan, nan, nan, nan, nan, '1974-02-09 00:00:00+00:00', 9, 2, 1974, 5362043, 7618770, 'HUMAN_OBSERVATION', NULL, 'Données d''observation flore du réseau des CBN issues du SI de la FCBN', '341526', NULL, {'array': '[]'}, 'NaT', 'CC_BY_4_0', NULL, {'array': '[{\'array_element\': "CHRISTOPHE Hervé (PNR des Volcans d\'Auvergne)"}]'}, {'array': '[]'}, NULL, '2024-01-25 09:18:31.471000+00:00', {'array': '[]'}, {'array': "[{'array_element': 'GEODETIC_DATUM_ASSUMED_WGS84'}\n {'array_element': 'CONTINENT_DERIVED_FROM_COORDINATES'}\n {'array_element': 'TAXON_MATCH_TAXON_ID_IGNORED'}]"}), ('1115471072', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', 'http://pifh.fr/occtax/4d4e0d1a-d79c-4f5b-8488-363201ee4af2', 'Plantae', 'Tracheophyta', 'Liliopsida', 'Poales', 'Poaceae', 'Bromus', 'Bromus hordeaceus', NULL, 'SPECIES', 'Bromus hordeaceus L.', 'Bromus hordeaceus L., 1753', NULL, 'FR', NULL, NULL, 'PRESENT', NULL, '1928bdf0-f5d2-11dc-8c12-b8a03c50a862', 44.46759, 4.19429, 5000.0, nan, nan, nan, nan, nan, '2009-04-05 00:00:00+00:00', 5, 4, 2009, 2703777, 2703777, 'HUMAN_OBSERVATION', NULL, 'Données d''observation flore du réseau des CBN issues du SI de la FCBN', '3675833', NULL, {'array': '[]'}, 'NaT', 'CC_BY_4_0', NULL, {'array': "[{'array_element': 'NSP (NSP)'}]"}, {'array': '[]'}, NULL, '2024-01-25 09:19:17.504000+00:00', {'array': '[]'}, {'array': "[{'array_element': 'GEODETIC_DATUM_ASSUMED_WGS84'}\n {'array_element': 'CONTINENT_DERIVED_FROM_COORDINATES'}\n {'array_element': 'TAXON_MATCH_TAXON_ID_IGNORED'}]"}), ('1115229692', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', 'http://cbnmc.fr/occtax/a1a8f01b-4c6c-4143-80f8-eac8e61dca12', 'Plantae', 'Tracheophyta', 'Magnoliopsida', 'Gentianales', 'Rubiaceae', 'Galium', 'Galium saxatile', NULL, 'SPECIES', 'Galium saxatile L.', 'Galium saxatile L., 1753', NULL, 'FR', NULL, NULL, 'PRESENT', NULL, '1928bdf0-f5d2-11dc-8c12-b8a03c50a862', 45.64145, 3.83445, 5000.0, nan, nan, nan, nan, nan, '2008-01-06 00:00:00+00:00', 6, 1, 2008, 2914547, 2914547, 'HUMAN_OBSERVATION', NULL, 'Données d''observation flore du réseau des CBN issues du SI de la FCBN', '3415382', NULL, {'array': '[]'}, 'NaT', 'CC_BY_4_0', NULL, {'array': "[{'array_element': 'NSP (NSP)'}]"}, {'array': '[]'}, NULL, '2024-01-25 09:17:58.554000+00:00', {'array': '[]'}, {'array': "[{'array_element': 'GEODETIC_DATUM_ASSUMED_WGS84'}\n {'array_element': 'CONTINENT_DERIVED_FROM_COORDINATES'}\n {'array_element': 'TAXON_MATCH_TAXON_ID_IGNORED'}]"}), ('1115471254', '75956ee6-1a2b-4fa3-b3e8-ccda64ce6c2d', 'http://pifh.fr/occtax/68a696a5-d906-41a4-a2b8-49e5d5a88792', 'Plantae', 'Tracheophyta', 'Magnoliopsida', 'Ranunculales', 'Ranunculaceae', 'Aquilegia', 'Aquilegia vulgaris', NULL, 'SPECIES', 'Aquilegia vulgaris L.', 'Aquilegia vulgaris L., 1753', NULL, 'FR', NULL, NULL, 'PRESENT', NULL, '1928bdf0-f5d2-11dc-8c12-b8a03c50a862', 44.46759, 4.19429, 5000.0, nan, nan, nan, nan, nan, '2009-04-05 00:00:00+00:00', 5, 4, 2009, 3033191, 3033191, 'HUMAN_OBSERVATION', NULL, 'Données d''observation flore du réseau des CBN issues du SI de la FCBN', '3675898', NULL, {'array': '[]'}, 'NaT', 'CC_BY_4_0', NULL, {'array': "[{'array_element': 'NSP (NSP)'}]"}, {'array': '[]'}, NULL, '2024-01-25 09:18:52.175000+00:00', {'array': '[]'}, {'array': "[{'array_element': 'GEODETIC_DATUM_ASSUMED_WGS84'}\n {'array_element': 'CONTINENT_DERIVED_FROM_COORDINATES'}\n {'array_element': 'TAXON_MATCH_TAXON_ID_IGNORED'}]"});