Public dataset · Government, society and transport
Chicago Crime in BigQuery
The chicago_crime dataset lists reported crime incidents in Chicago from 2001 to about a week ago, extracted from the Chicago Police Department's CLEAR system and updated daily. One 1.7 GiB table of 8.7 million rows; most aggregate queries read 100 to 200 MiB.
bigquery-public-data.chicago_crime reflects reported incidents of crime in Chicago from 2001 to the present, minus the most recent seven days, according to its description. The data comes from the Chicago Police Department's CLEAR (Citizen Law Enforcement Analysis and Reporting) system and is published by the City of Chicago, with daily updates. Murders appear once per victim.
To protect victims, addresses are shown at block level only. The description also warns that the data includes unverified reports, that preliminary classifications can change after investigation, and that the police department does not guarantee its accuracy or recommend it for comparisons over time.
crime has one row per incident: case_number, date, block, the IUCR code with primary_type and description, location_description, arrest and domestic flags, beat, district, ward and community_area, the FBI code, coordinates and year.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
crimeOne row per reported incident since 2001. | 8,684,722 | 1.7 GiB | $0.01 | None |
Example queries
Incidents per year and type since 2020
Uses the integer year column for filtering and grouping; it is cheaper than extracting the year from date.
SELECT year, primary_type, COUNT(*) AS incidents
FROM `bigquery-public-data.chicago_crime.crime`
WHERE year >= 2020
GROUP BY year, primary_type
ORDER BY year, incidents DESC;Arrest rate by crime type
SELECT
primary_type,
COUNT(*) AS incidents,
ROUND(COUNTIF(arrest) / COUNT(*), 3) AS arrest_rate
FROM `bigquery-public-data.chicago_crime.crime`
GROUP BY primary_type
HAVING incidents > 10000
ORDER BY arrest_rate DESC;All 2024 thefts with SELECT * (expensive)
The table is not partitioned, so SELECT * reads all 1.7 GiB however narrow the filter.
SELECT *
FROM `bigquery-public-data.chicago_crime.crime`
WHERE primary_type = 'THEFT'
AND year = 2024;Incidents by hour of day in 2024
Two columns, about a thirteenth of the SELECT * bytes.
SELECT
EXTRACT(HOUR FROM date) AS hour,
COUNT(*) AS incidents
FROM `bigquery-public-data.chicago_crime.crime`
WHERE year = 2024
GROUP BY hour
ORDER BY hour;Querying it cheaply
crimeis not partitioned or clustered, so ayearfilter reduces rows but not bytes. Select only the columns you need.- The text columns (
block,description,location_description,location) are the heavy ones. Group on codes such asiucr,fbi_codeorprimary_typewhen you can. - The table is updated daily, so cached results expire after each update.
FAQ
How much does it cost to query Chicago crime data in BigQuery?
Most aggregate queries read 100 to 200 MiB, and a full scan reads 1.7 GiB, about $0.01 at the $6.25 per TiB on-demand list price. All of it fits in the free 1 TiB a month.
Is the Chicago crime dataset free?
Yes for storage: the data sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).
How current is the Chicago crime data?
It is updated daily and covers 2001 to the present minus the most recent seven days. The table was last modified on the day these sizes were measured.
Can I use chicago_crime for trends over time?
With care. The dataset description says classifications can change after investigation and that the data should not be used for comparisons over time, so treat year-over-year changes as indicative, not official statistics.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
