-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.epa_historical_air_quality.pm25_speciation_hourly_summary`
(
  state_code STRING OPTIONS(description="The FIPS code of the state in which the monitor resides."),
  county_code STRING OPTIONS(description="The FIPS code of the county in which the monitor resides."),
  site_num STRING OPTIONS(description="A unique number within the county identifying the site."),
  parameter_code INT64 OPTIONS(description="The AQS code corresponding to the parameter measured by the monitor."),
  poc INT64 OPTIONS(description="This is the “Parameter Occurrence Code” used to distinguish different instruments that measure the same parameter at the same site."),
  latitude FLOAT64 OPTIONS(description="The monitoring site’s angular distance north of the equator measured in decimal degrees."),
  longitude FLOAT64 OPTIONS(description="The monitoring site’s angular distance east of the prime meridian measured in decimal degrees."),
  datum STRING OPTIONS(description="The Datum associated with the Latitude and Longitude measures."),
  parameter_name STRING OPTIONS(description="The name or description assigned in AQS to the parameter measured by the monitor. Parameters may be pollutants or non-pollutants."),
  date_local DATE OPTIONS(description="The calendar date for the summary. All daily summaries are for the local standard day (midnight to midnight) at the monitor."),
  time_local STRING OPTIONS(description="The time of day that sampling began on a 24-hour clock in Local Standard Time."),
  date_gmt DATE OPTIONS(description="The calendar date of the sample in Greenwich Mean Time."),
  time_gmt STRING OPTIONS(description="The time of day that sampling began on a 24-hour clock in Greenwich Mean Time."),
  sample_measurement FLOAT64 OPTIONS(description="The measured value in the standard units of measure for the parameter."),
  units_of_measure STRING OPTIONS(description="The unit of measure for the parameter. QAD always returns data in the standard units for the parameter. Submitters are allowed to report data in any unit and EPA converts to a standard unit so that we may use the data in calculations."),
  mdl FLOAT64 OPTIONS(description="The Method Detection Limit. The minimum sample concentration detectable for the monitor and method. Note: if samples are reported below this level, they may have been replaced by 1/2 the MDL."),
  uncertainty FLOAT64 OPTIONS(description="The total measurement uncertainty associated with a reported measurement as indicated by the reporting agency."),
  qualifier STRING OPTIONS(description="Sample values may have qualifiers that indicate why they are missing or that they are out of the ordinary. Types of qualifiers are: null data, exceptional event, natural events, and quality assurance. The highest ranking qualifier, if any, is described in this field."),
  method_type STRING OPTIONS(description="An indication of whether the method used to collect the data is a federal reference method (FRM), equivalent to a federal reference method, an approved regional method, or none of the above (non-federal reference method)."),
  method_code STRING OPTIONS(description="An internal system code indicating the method (processes, equipment, and protocols) used in gathering and measuring the sample. The method name is in the next column."),
  method_name STRING OPTIONS(description="A short description of the processes, equipment, and protocols used in gathering and measuring the sample."),
  state_name STRING OPTIONS(description="The name of the state where the monitoring site is located."),
  county_name STRING OPTIONS(description="The name of the county where the monitoring site is located."),
  date_of_last_change DATE OPTIONS(description="The date the last time any numeric values in this record were updated in the AQS data system.")
)
OPTIONS(
  description=""
);

INSERT INTO `bigquery-public-data.epa_historical_air_quality.pm25_speciation_hourly_summary` (state_code, county_code, site_num, parameter_code, poc, latitude, longitude, datum, parameter_name, date_local, time_local, date_gmt, time_gmt, sample_measurement, units_of_measure, mdl, uncertainty, qualifier, method_type, method_code, method_name, state_name, county_name, date_of_last_change) VALUES ('09', '001', '1123', 88313, 1, 41.399167, -73.443056, 'WGS84', 'Black Carbon PM2.5 at 880 nm', '2024-01-01', '01:00', '2024-01-01', '06:00', 1.41, 'Micrograms/cubic meter (LC)', 0.2, nan, NULL, 'Non-FRM', '894', 'Magee AE33/ TAPI M633 Aethalometer - Optical absorption', 'Connecticut', 'Fairfield', '2024-07-01'), ('09', '001', '1123', 88313, 1, 41.399167, -73.443056, 'WGS84', 'Black Carbon PM2.5 at 880 nm', '2024-01-01', '02:00', '2024-01-01', '07:00', 1.35, 'Micrograms/cubic meter (LC)', 0.2, nan, NULL, 'Non-FRM', '894', 'Magee AE33/ TAPI M633 Aethalometer - Optical absorption', 'Connecticut', 'Fairfield', '2024-07-01'), ('09', '001', '1123', 88313, 1, 41.399167, -73.443056, 'WGS84', 'Black Carbon PM2.5 at 880 nm', '2024-01-01', '03:00', '2024-01-01', '08:00', 0.77, 'Micrograms/cubic meter (LC)', 0.2, nan, NULL, 'Non-FRM', '894', 'Magee AE33/ TAPI M633 Aethalometer - Optical absorption', 'Connecticut', 'Fairfield', '2024-07-01'), ('09', '001', '1123', 88313, 1, 41.399167, -73.443056, 'WGS84', 'Black Carbon PM2.5 at 880 nm', '2024-01-01', '04:00', '2024-01-01', '09:00', 0.6, 'Micrograms/cubic meter (LC)', 0.2, nan, NULL, 'Non-FRM', '894', 'Magee AE33/ TAPI M633 Aethalometer - Optical absorption', 'Connecticut', 'Fairfield', '2024-07-01'), ('09', '001', '1123', 88313, 1, 41.399167, -73.443056, 'WGS84', 'Black Carbon PM2.5 at 880 nm', '2024-01-01', '05:00', '2024-01-01', '10:00', 1.18, 'Micrograms/cubic meter (LC)', 0.2, nan, NULL, 'Non-FRM', '894', 'Magee AE33/ TAPI M633 Aethalometer - Optical absorption', 'Connecticut', 'Fairfield', '2024-07-01');