-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.epa_historical_air_quality.pm25_nonfrm_daily_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."),
  sample_duration STRING OPTIONS(description="The length of time that air passes through the monitoring device before it is analyzed (measured). So, it represents an averaging period in the atmosphere (for example, a 24-hour sample duration draws ambient air over a collection filter for 24 straight hours). For continuous monitors, it can represent an averaging time of many samples (for example, a 1-hour value may be the average of four one-minute samples collected during each quarter of the hour)."),
  pollutant_standard STRING OPTIONS(description="A description of the ambient air quality standard rules used to aggregate statistics. (See description at beginning of document.)"),
  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."),
  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."),
  event_type STRING OPTIONS(description="Indicates whether data measured during exceptional events are included in the summary. A wildfire is an example of an exceptional event; it is something that affects air quality, but the local agency has no control over. No Events means no events occurred. Events Included means events occurred and the data from them is included in the summary. Events Excluded means that events occurred but data form them is excluded from the summary. Concurred Events Excluded means that events occurred but only EPA concurred exclusions are removed from the summary. If an event occurred for the parameter in question, the data will have multiple records for each monitor."),
  observation_count INT64 OPTIONS(description="The number of observations (samples) taken during the day."),
  observation_percent FLOAT64 OPTIONS(description="The percent representing the number of observations taken with respect to the number scheduled to be taken during the day. This is only calculated for monitors where measurements are required (e.g., only certain parameters)."),
  arithmetic_mean FLOAT64 OPTIONS(description="The average (arithmetic mean) value for the day."),
  first_max_value FLOAT64 OPTIONS(description="The highest value for the day."),
  first_max_hour INT64 OPTIONS(description="The hour (on a 24-hour clock) when the highest value for the day (the previous field) was taken."),
  aqi INT64 OPTIONS(description="The Air Quality Index for the day for the pollutant, if applicable."),
  method_code INT64 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."),
  local_site_name STRING OPTIONS(description="The name of the site (if any) given by the State, local, or tribal air pollution control agency that operates it."),
  address STRING OPTIONS(description="The approximate street address of the monitoring site."),
  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."),
  city_name STRING OPTIONS(description="The name of the city where the monitoring site is located. This represents the legal incorporated boundaries of cities and not urban areas."),
  cbsa_name STRING OPTIONS(description="The name of the core bases statistical area (metropolitan area) 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_nonfrm_daily_summary` (state_code, county_code, site_num, parameter_code, poc, latitude, longitude, datum, parameter_name, sample_duration, pollutant_standard, date_local, units_of_measure, event_type, observation_count, observation_percent, arithmetic_mean, first_max_value, first_max_hour, aqi, method_code, method_name, local_site_name, address, state_name, county_name, city_name, cbsa_name, date_of_last_change) VALUES ('12', '086', '0030', 88502, 1, 25.39122, -80.680819, 'WGS84', 'Acceptable PM2.5 AQI & Speciation Mass', '24 HOUR', NULL, '1988-09-28', 'Micrograms/cubic meter (LC)', 'None', 1, 100.0, 8.53658, 8.53658, 0, 35, 707, 'IMPROVE Module A with Cyclone Inlet-Teflon Filter, 2.2 sq. cm. - GRAVIMETRIC', 'SITE MOVED ACROSS ROAD FROM BEARD CENTER TO BEHIND IORI RESEARCH BLD', 'EVERGLADES NP', 'Florida', 'Miami-Dade', 'Not in a city', 'Miami-Fort Lauderdale-West Palm Beach, FL', '2015-07-22'), ('12', '086', '0030', 88502, 1, 25.39122, -80.680819, 'WGS84', 'Acceptable PM2.5 AQI & Speciation Mass', '24 HOUR', NULL, '1988-10-01', 'Micrograms/cubic meter (LC)', 'None', 1, 100.0, 4.78827, 4.78827, 0, 20, 707, 'IMPROVE Module A with Cyclone Inlet-Teflon Filter, 2.2 sq. cm. - GRAVIMETRIC', 'SITE MOVED ACROSS ROAD FROM BEARD CENTER TO BEHIND IORI RESEARCH BLD', 'EVERGLADES NP', 'Florida', 'Miami-Dade', 'Not in a city', 'Miami-Fort Lauderdale-West Palm Beach, FL', '2015-07-22'), ('12', '086', '0030', 88502, 1, 25.39122, -80.680819, 'WGS84', 'Acceptable PM2.5 AQI & Speciation Mass', '24 HOUR', NULL, '1988-10-05', 'Micrograms/cubic meter (LC)', 'None', 1, 100.0, 5.70064, 5.70064, 0, 24, 707, 'IMPROVE Module A with Cyclone Inlet-Teflon Filter, 2.2 sq. cm. - GRAVIMETRIC', 'SITE MOVED ACROSS ROAD FROM BEARD CENTER TO BEHIND IORI RESEARCH BLD', 'EVERGLADES NP', 'Florida', 'Miami-Dade', 'Not in a city', 'Miami-Fort Lauderdale-West Palm Beach, FL', '2015-07-22'), ('12', '086', '0030', 88502, 1, 25.39122, -80.680819, 'WGS84', 'Acceptable PM2.5 AQI & Speciation Mass', '24 HOUR', NULL, '1988-10-12', 'Micrograms/cubic meter (LC)', 'None', 1, 100.0, 10.894, 10.894, 0, 45, 707, 'IMPROVE Module A with Cyclone Inlet-Teflon Filter, 2.2 sq. cm. - GRAVIMETRIC', 'SITE MOVED ACROSS ROAD FROM BEARD CENTER TO BEHIND IORI RESEARCH BLD', 'EVERGLADES NP', 'Florida', 'Miami-Dade', 'Not in a city', 'Miami-Fort Lauderdale-West Palm Beach, FL', '2015-07-22'), ('12', '086', '0030', 88502, 1, 25.39122, -80.680819, 'WGS84', 'Acceptable PM2.5 AQI & Speciation Mass', '24 HOUR', NULL, '1988-10-15', 'Micrograms/cubic meter (LC)', 'None', 1, 100.0, 8.06122, 8.06122, 0, 33, 707, 'IMPROVE Module A with Cyclone Inlet-Teflon Filter, 2.2 sq. cm. - GRAVIMETRIC', 'SITE MOVED ACROSS ROAD FROM BEARD CENTER TO BEHIND IORI RESEARCH BLD', 'EVERGLADES NP', 'Florida', 'Miami-Dade', 'Not in a city', 'Miami-Fort Lauderdale-West Palm Beach, FL', '2015-07-22');