-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.covid19_nyt.excess_deaths`
(
  country STRING OPTIONS(description="The country reported"),
  placename STRING OPTIONS(description="The place in the country reported"),
  frequency STRING OPTIONS(description="Weekly or monthly, depending on how the data is recorded"),
  start_date DATE OPTIONS(description="The first date included in the period"),
  end_date DATE OPTIONS(description="The last date included in the period"),
  year STRING OPTIONS(description="Year reported"),
  month INT64 OPTIONS(description="Numerical month"),
  week INT64 OPTIONS(description="Epidemiological week, which is a standardized way of counting weeks to allow for year-over-year comparisons. Most countries start epi weeks on Mondays, but others vary"),
  deaths INT64 OPTIONS(description="The total number of confirmed deaths recorded from any cause"),
  expected_deaths INT64 OPTIONS(description="The baseline number of expected deaths, calculated from a historical average"),
  excess_deaths INT64 OPTIONS(description="The number of deaths minus the expected deaths"),
  baseline STRING OPTIONS(description="The years used to calculate expected_deaths")
)
OPTIONS(
  description="Last update: As of Jan. 18, 2021, The New York Times are no longer updating this excess deaths dataset. We have updated data through the end of 2020 or as far as available.\n\nThe New York Times is releasing data that documents the number of deaths from all causes that have occurred during the coronavirus pandemic for 32 countries. We are compiling this time series data from national and municipal health departments, vital statistics offices and other official sources in order to better understand the true toll of the pandemic and provide a record for researchers and the public.\n\nOfficial Covid-19 death tolls offer a limited view of the impact of the outbreak because they often exclude people who have not been tested and those who died at home. All-cause mortality is widely used by demographers and other researchers to understand the full impact of deadly events, including epidemics, wars and natural disasters. The totals in this data include deaths from Covid-19 as well as those from other causes, likely including people who could not be treated or did not seek treatment for other conditions.\n\nWe have used this data to produce graphics tracking the oubreak's toll and stories about the United States, Ecuador, Russia, Turkey, Sweden and other countries. We would like to thank a number of demographers and other researchers, listed at the end, who have provided data or helped interpret it.\n\nSourced from https://github.com/nytimes/covid-19-data/tree/master/excess-deaths."
);

INSERT INTO `bigquery-public-data.covid19_nyt.excess_deaths` (country, placename, frequency, start_date, end_date, year, month, week, deaths, expected_deaths, excess_deaths, baseline) VALUES ('India', 'Mumbai', 'monthly', 'NaT', 'NaT', '2020', 1, NULL, 8397, 8360, 37, '2019 historical data'), ('India', 'Mumbai', 'monthly', 'NaT', 'NaT', '2020', 2, NULL, 7116, 7797, -681, '2019 historical data'), ('India', 'Mumbai', 'monthly', 'NaT', 'NaT', '2020', 3, NULL, 6692, 7155, -463, '2019 historical data'), ('India', 'Mumbai', 'monthly', 'NaT', 'NaT', '2020', 4, NULL, 7092, 6752, 340, '2019 historical data'), ('India', 'Mumbai', 'monthly', 'NaT', 'NaT', '2020', 5, NULL, 13833, 7335, 6498, '2019 historical data');