Public dataset · Health and life sciences
COVID-19 Open Data in BigQuery
Daily COVID-19 time series by country and region: cases, deaths, tests, vaccinations, hospitalisations, government response, mobility, weather, demographics and health indicators. One table of 22.8 million rows and 701 columns (11.7 GiB): select a few columns and a query drops from 11 GiB to about 0.6 GiB.
The dataset contains daily time-series data related to COVID-19 for countries and their subdivisions, as the dataset description says, compiled by the COVID-19 Open Data project on GitHub (GoogleCloudPlatform/covid-19-open-data), which lists the original sources.
covid19_open_data has one row per location_key and date. aggregation_level tells you the geography: 0 country, 1 first-level subdivision (state, province), 2 second-level (county). The 701 columns combine epidemiology (new_confirmed, cumulative_deceased, cumulative_tested), vaccinations, hospitalisations, government response indices (stringency_index, school_closing), mobility, weather, demographics (population, age bands), economy and health indicators, many repeated per row as static attributes.
compatibility_view reshapes the data into the column names of older COVID-19 datasets (province_state, country_region, confirmed, deaths). The table metadata shows it was last modified on 2025-06-23.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
covid19_open_dataOne row per location and date, 701 columns. | 22,756,333 | 11.7 GiB | $0.07 | None |
compatibility_viewOlder column layout (province_state, country_region, confirmed, deaths). View: BigQuery reports no row count for views; size is the dry-run estimate for SELECT *. | 0 | 3.0 GiB | $0.02 | None |
Example queries
One country with SELECT * (expensive)
All 701 columns for the United Kingdom: 11.37 GiB, even though the filter keeps only one location's rows.
SELECT *
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE location_key = 'GB';One country, four columns (cheap)
Same rows with date, new cases, new deaths and full vaccinations: 649 MiB, about 18 times less.
SELECT
date,
new_confirmed,
new_deceased,
cumulative_persons_fully_vaccinated
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE location_key = 'GB'
ORDER BY date;Countries with the highest COVID-19 death rate
Country-level rows only (aggregation_level = 0), largest cumulative deaths over population.
SELECT
country_name,
MAX(cumulative_deceased) AS deaths,
MAX(population) AS population,
ROUND(MAX(cumulative_deceased) / MAX(population) * 100000, 1) AS deaths_per_100k
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE aggregation_level = 0
AND population >= 1000000
GROUP BY country_name
ORDER BY deaths_per_100k DESC
LIMIT 10;US states by confirmed cases
First-level subdivisions of the US (aggregation_level = 1).
SELECT
subregion1_name AS state,
MAX(cumulative_confirmed) AS confirmed
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE country_code = 'US'
AND aggregation_level = 1
GROUP BY state
ORDER BY confirmed DESC
LIMIT 10;Querying it cheaply
- The table is neither partitioned nor clustered.
WHERE location_key = 'GB'or a date range filters rows but still reads every value of each column you reference, so cost depends only on columns. - With 701 columns,
SELECT *costs 11.37 GiB per query. Four or five columns cost about 0.6 GiB. compatibility_viewis not cheaper: aSELECT *on it scans 3.02 GiB, because the view groups the base table to work out the aggregation level.- If you chart the same few metrics repeatedly, save them once into your own small table and query that.
FAQ
How much does it cost to query the COVID-19 Open Data dataset?
A query that selects a handful of columns scans about 0.6 GiB. SELECT * scans 11.37 GiB. Both are within the 1 TiB monthly free tier, but SELECT * in a dashboard that refreshes often adds up quickly.
Is the covid19_open_data dataset free?
Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.
Is the COVID-19 Open Data table still updated?
The table was last modified on 2025-06-23 according to its metadata. Check MAX(date) per location, because many sources stopped reporting earlier than that.
Why do I get duplicate totals when I sum all rows for a country?
The table mixes geographic levels: a country row, its state rows and its county rows. Filter on aggregation_level (0 for country, 1 for states, 2 for counties) before you aggregate.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
