context
stringlengths 11
9.12k
| question
stringlengths 0
1.06k
| SQL
stringlengths 2
4.44k
| source
stringclasses 28
values |
---|---|---|---|
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Give the detailed description of all the crimes against society. | SELECT description FROM FBI_Code WHERE crime_against = 'Society' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Who is the commanding officer in the district with the highest number of disorderly conduct? | SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Disorderly Conduct' AND T2.fbi_code_no = 24 GROUP BY T2.fbi_code_no ORDER BY COUNT(T1.district_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Which crime was committed the most by criminals? | SELECT T2.title FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no ORDER BY T2.fbi_code_no DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In Albany Park, how many arrests were made in an apartment due to criminal sexual abuse? | SELECT SUM(CASE WHEN T3.title = 'Criminal Sexual Abuse' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.district_name = 'Albany Park' AND T2.arrest = 'TRUE' AND T2.location_description = 'APARTMENT' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the precise location or coordinate where most of the robberies in Rogers Park occurred? | SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Rogers Park' AND T3.title = 'Robbery' AND T3.fbi_code_no = 3 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many solicit on public way prostitution crimes were arrested in West Garfield Park? | SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN IUCR AS T3 ON T2.iucr_no = T3.iucr_no WHERE T1.community_area_name = 'West Garfield Park' AND T3.secondary_description = 'SOLICIT ON PUBLIC WAY' AND T3.primary_description = 'PROSTITUTION' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In the most populated ward, how many incidents of domestic violence were reported in a bar or tavern? | SELECT COUNT(T2.report_no) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.domestic = 'TRUE' AND T2.location_description = 'BAR OR TAVERN' ORDER BY T1.Population DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many neighborhoods are there in Near North Side? | SELECT SUM(CASE WHEN T1.community_area_name = 'Near North Side' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Out of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested? | SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Walter' AND T1.alderman_last_name = 'Burnett' AND alderman_name_suffix = 'Jr.' AND T2.domestic = 'TRUE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the short description of the crime committed the most by criminals in the least populated community? | SELECT T3.title FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no GROUP BY T3.title ORDER BY T1.population ASC, T3.fbi_code_no DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the legislative district's office address where 010XX W LAKE ST is located? | SELECT T1.ward_office_address FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.block = '010XX W LAKE ST' GROUP BY T1.ward_office_address | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the name of the community that has the highest number of crimes related to prostitution? | SELECT T3.community_area_name FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T1.community_area_no = T3.community_area_no WHERE T2.primary_description = 'PROSTITUTION' GROUP BY T1.iucr_no ORDER BY T1.case_number DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many vandalisms were arrested in the ward represented by Edward Burke? | SELECT SUM(CASE WHEN T1.alderman_last_name = 'Burke' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Vandalism' AND T2.arrest = 'TRUE' AND T1.alderman_first_name = 'Edward' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many domestic violence cases were reported in May 2018? | SELECT COUNT(*) FROM Crime WHERE date LIKE '5/%/2018%' AND domestic = 'TRUE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the IUCR numbers and index status of homicide incidents. | SELECT index_code FROM IUCR WHERE primary_description = 'HOMICIDE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Provide the responsible person and his/her email address of Chicago Lawn. | SELECT commander, email FROM District WHERE district_name = 'Chicago Lawn' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the alderman's full name of the most crowded ward? | SELECT alderman_name_suffix, alderman_first_name, alderman_last_name FROM Ward ORDER BY population DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the community area names in the Northwest. | SELECT community_area_name FROM Community_Area WHERE side = 'Northwest' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List down the titles and descriptions of the crimes cases against persons. | SELECT title, description FROM FBI_Code WHERE crime_against = 'Persons' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Describe the specific description and case locations under IUCR 142. | SELECT T1.secondary_description, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.iucr_no = 142 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes were handled by Brendan Reilly on 7th October 2018? | SELECT SUM(CASE WHEN T2.alderman_last_name = 'Reilly' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.alderman_name_suffix IS NULL AND T2.alderman_first_name = 'Brendan' AND date LIKE '10/7/2018%' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many cases have been arrested among the crimes that happened in the restaurant of Englewood? | SELECT SUM(CASE WHEN T1.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Englewood' AND T1.location_description = 'RESTAURANT' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Provide case numbers, aldermen's full names, and district names of the crimes that happened in 0000X N FRANCISCO AVE. | SELECT T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T2.block = '0000X N FRANCISCO AVE' GROUP BY T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes were Misc Non-Index Offense? | SELECT SUM(CASE WHEN T1.title = 'Misc Non-Index Offense' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List down the neighborhood areas of Douglas. | SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Douglas' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Calculate the average crime rate per month in the highest populous area. | SELECT CAST(COUNT(T2.report_no) AS REAL) / 12 FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the crimes in the Central, calculate the percentage of larceny incidents. | SELECT CAST(COUNT(CASE WHEN T3.title = 'Larceny' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.side = 'Central' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the location descriptions and aldermen's full names of the arson by explosive. | SELECT T2.location_description, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.primary_description = 'ARSON' AND T3.secondary_description = 'BY EXPLOSIVE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound. | SELECT T2.date, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T1.primary_description = 'DECEPTIVE PRACTICE' AND T1.secondary_description = 'UNLAWFUL USE OF RECORDED SOUND' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the criminal sexual assaults in the district of Adnardo Gutierrez, how many cases happened in the residence? | SELECT COUNT(T2.report_no) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Criminal Sexual Assault' AND T1.commander = 'Adnardo Gutierrez' AND T2.location_description = 'RESIDENCE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many percent of domestic violence cases were arrested in West Pullman? | SELECT CAST(COUNT(CASE WHEN T2.arrest = 'TRUE' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'West Pullman' AND T2.domestic = 'TRUE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Calculate the percentage of the domestic violence cases handled by Christopher Taliaferro. Among them, list report numbers of cases that happened in the bank. | SELECT CAST(COUNT(CASE WHEN T1.domestic = 'TRUE' THEN T1.report_no END) AS REAL) * 100 / COUNT(T1.report_no), COUNT(CASE WHEN T1.domestic = 'TRUE' AND T1.location_description = 'BANK' THEN T1.report_no END) AS "number" FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T2.alderman_first_name = 'Christopher' AND T2.alderman_last_name = 'Taliaferro' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many aldermen have "James" as their first name? | SELECT COUNT(*) FROM Ward WHERE alderman_first_name = 'James' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes are commited on January 1, 2018? | SELECT COUNT(*) FROM Crime WHERE date LIKE '1/1/2018%' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Calculate the average population of community areas in the West side. | SELECT AVG(population) FROM Community_Area WHERE side = 'West ' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the cases reported in the ward with Edward Burke as the alderman and happened in the community area with the highest population, provide the report number of the crime with the highest beat. | SELECT T2.report_no FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.alderman_first_name = 'Edward' AND T1.alderman_last_name = 'Burke' ORDER BY T2.beat DESC, T3.population DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many of the crimes that happened in the street have FBI title "Homicide 1st & 2nd Degree"? | SELECT SUM(CASE WHEN T2.location_description = 'STREET' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Who is the alderman in the ward associated with the crime with report number 23769? | SELECT T2.alderman_first_name, T2.alderman_last_name FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.report_no = 23769 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the case numbers of domestic violence crimes reported in Lincoln Square. | SELECT T2.case_number FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Lincoln Square' AND T2.domestic = 'TRUE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the crimes reported to the ward located at 1958 N. Milwaukee Ave., list down the report number of the crimes happened inside the apartment. | SELECT T1.case_number FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T2.ward_office_address = '1958 N. Milwaukee Ave.' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the total number of crimes that happened in Bridgeport with beat less than 1000? | SELECT SUM(CASE WHEN T2.beat < 1000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Bridgeport' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the report number of crimes reported in a community area in the far north side with a population greater than 60,000. | SELECT SUM(CASE WHEN T1.population > 60000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Far North ' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the report number of crimes against property happened in Riverdale. | SELECT SUM(CASE WHEN T1.crime_against = 'Property' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T3.community_area_name = 'Riverdale' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many domestic violence cases were brought in the ward that uses "[email protected]"? | SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no WHERE T1.ward_email = '[email protected]' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the district address associated with the case JB107731? | SELECT T1.address FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T2.case_number = 'JB107731' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Calculate the total beat of the crimes reported in a community area in the central side with population of 50,000 and above. | SELECT 1.0 * SUM(CASE WHEN T1.population > 50000 THEN T2.beat ELSE 0 END) AS sum FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Central' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the case number of crimes against society that happened in June 2018. | SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T2.date LIKE '6/%/2018%' AND T1.crime_against = 'Society' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the crimes located in the community area with the highest population, what is the percentage of domestic violence? | SELECT CAST(COUNT(CASE WHEN T2.domestic = 'TRUE' THEN T2.domestic END) AS REAL) * 100 / COUNT(T2.domestic) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the case number of the crimes in wards with population below 52000 that have beat greater than the 90% of the average beat of all crimes. | SELECT COUNT(T1.report_no) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 AND T1.beat > ( SELECT AVG(T1.beat) * 0.9 FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 ) | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Please list the area name of the communities in the Far north side, which has a population of more than 50000 but less than 70000. | SELECT community_area_name, side FROM Community_Area WHERE side = 'Far North ' AND population BETWEEN 50000 AND 70000 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Give the coordinate of the alleys where a crime was reported and an arrest was made. | SELECT latitude, longitude FROM Crime WHERE location_description = 'ALLEY' AND arrest = 'TRUE' GROUP BY latitude, longitude | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Find the commander's name, email address, and phone number of the Ogden district. | SELECT commander, email, phone FROM District WHERE district_name = 'Ogden' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the FBI code and definition of Gambling? | SELECT fbi_code_no, description FROM FBI_Code WHERE title = 'Gambling' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the crimes, what percentage are severe? | SELECT CAST(COUNT(CASE WHEN index_code = 'I' THEN iucr_no ELSE NULL END) AS REAL) * 100 / COUNT(iucr_no) FROM IUCR | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What kind of location in Austin reported the most number of crimes? | SELECT T2.location_description FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Austin' GROUP BY T2.location_description ORDER BY COUNT(T2.case_number) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | On average, how many community areas are there in a side? | SELECT CAST(COUNT(T1.ward_no) AS REAL) / COUNT(DISTINCT T3.side) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Which community area has the highest number of crimes reported on the street? | SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T2.location_description = 'STREET' GROUP BY T1.community_area_no ORDER BY COUNT(T2.location_description) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the average number of reckless homicides that happened in a district? | SELECT CAST(COUNT(T2.report_no) AS REAL) / COUNT(DISTINCT T1.district_name) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.secondary_description = 'RECKLESS HOMICIDE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Find the ward office's address and phone number of the ward where the most crimes without arrest occurred. | SELECT T2.ward_office_address, T2.ward_office_phone FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.arrest = 'FALSE' GROUP BY T2.ward_office_address, T2.ward_office_phone ORDER BY COUNT(T1.arrest) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Give the case number and coordinates of the places where child abduction is reported. | SELECT T1.case_number, T1.latitude, T1.longitude FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.secondary_description = 'CHILD ABDUCTION' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the most reported crime in the Northwest side? | SELECT T3.secondary_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T1.side = 'Northwest ' GROUP BY T3.secondary_description ORDER BY COUNT(*) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Find the community area where the least number of domestic crimes happened. | SELECT T2.community_area_no FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.domestic = 'TRUE' GROUP BY T2.community_area_no ORDER BY COUNT(T2.community_area_no) ASC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In drug abuse crimes, what percentage is related to cannabis? | SELECT CAST(COUNT(CASE WHEN T1.secondary_description LIKE '%CANNABIS%' THEN T1.secondary_description END) AS REAL) * 100 / COUNT(T1.secondary_description) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Drug Abuse' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the average number of less severe crimes reported a day in February of 2018? | SELECT CAST(COUNT(T2.case_number) AS REAL) / 28 FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.date LIKE '2/%/2018%' AND T1.index_code = 'N' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List the name and population of the communities where more than average solicit for prostitutes were reported. | SELECT T2.community_area_name, T2.population FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T1.iucr_no WHERE T3.iucr_no = ( SELECT iucr_no FROM IUCR WHERE secondary_description = 'SOLICIT FOR PROSTITUTE' GROUP BY iucr_no HAVING COUNT(iucr_no) > ( SELECT SUM(CASE WHEN secondary_description = 'SOLICIT FOR PROSTITUTE' THEN 1.0 ELSE 0 END) / COUNT(iucr_no) AS average FROM IUCR ) ) | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Among the incidents reported in Harrison, what percentage are disorderly conduct? | SELECT COUNT(CASE WHEN T3.title = 'Disorderly Conduct' THEN T2.report_no END) * 100.0 / COUNT(T2.report_no) AS per FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.district_name = 'Harrison' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Calculate the difference in the average number of vehicular hijackings and aggravated vehicular hijackings in the districts. | SELECT ROUND(CAST(COUNT(CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL) - CAST(COUNT(CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL), 4) AS "difference" FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes happened in longitude -8772658001? | SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List all the crimes of the narcotic type that exist. | SELECT secondary_description FROM IUCR WHERE primary_description = 'NARCOTICS' GROUP BY secondary_description | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the first name of the aldermen of wards with more than 50,000 inhabitants? | SELECT alderman_first_name FROM Ward WHERE Population > 50000 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | List crimes that the FBI has classified as Drug Abuse by their report number. | SELECT T2.report_no FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Drug Abuse' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many weapons violation crimes have occurred in the Calumet district? | SELECT SUM(CASE WHEN T3.district_name = 'Calumet' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'WEAPONS VIOLATION' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the exact location of the crimes that occurred in the Belmont Cragin community? | SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Belmont Cragin' GROUP BY T2.latitude, T2.longitude | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many different types of crimes, according to the primary description, have occurred in the Hermosa neighborhood? | SELECT SUM(CASE WHEN T4.neighborhood_name = 'Hermosa' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T4 ON T4.community_area_no = T3.community_area_no | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many domestic crime cases has Commander Ronald A. Pontecore Jr. been responsible for investigating? | SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.commander = 'Ronald A. Pontecore Jr.' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes against society happened in the Wentworth district according to the FBI? | SELECT SUM(CASE WHEN T1.crime_against = 'Society' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T3.district_name = 'Wentworth' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What phone number does alderman Emma Mitts have to call if she wants to speak to the commander in charge of the investigation of the crimes that have occurred in her ward? | SELECT T3.phone FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.alderman_first_name = 'Emma' AND T1.alderman_last_name = 'Mitts' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crimes described as 'The theft of a motor vehicle' by the FBI have taken place in the Lake View community? | SELECT SUM(CASE WHEN T3.community_area_name = 'Lake View' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.description = 'The theft of a motor vehicle.' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In which district have there been more intimidation-type crimes? | SELECT T3.district_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'INTIMIDATION' GROUP BY T3.district_name ORDER BY COUNT(T1.primary_description) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What types of domestic crimes have occurred the most in the North Lawndale community? | SELECT T2.domestic FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'North Lawndale' AND T2.domestic = 'TRUE' GROUP BY T2.domestic ORDER BY COUNT(T2.domestic) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion? | SELECT T3.ward_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Ward AS T3 ON T3.ward_no = T2.ward_no WHERE T1.primary_description = 'INTIMIDATION' AND T1.secondary_description = 'EXTORTION' AND T3.Population > 55000 GROUP BY T3.ward_no ORDER BY COUNT(T3.ward_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Which commander has had to deal with more cases of criminal sexual abuse? | SELECT T3.commander FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.secondary_description = 'CRIMINAL SEXUAL ABUSE' GROUP BY T3.commander ORDER BY COUNT(T1.secondary_description) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What percentage of non-domestic crimes have occurred in the Jefferson Park district? | SELECT CAST(COUNT(CASE WHEN T2.domestic = 'FALSE' THEN T2.case_number END) AS REAL) * 100 / COUNT(T2.case_number) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Jefferson Park' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the average population of the wards where apartment crimes have been reported without arrests? | SELECT AVG(T2.Population) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T1.arrest = 'FALSE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What are the full names of the top 5 most crowded ward aldermen? | SELECT alderman_first_name, alderman_last_name FROM Ward ORDER BY Population DESC LIMIT 5 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crime against property are there? | SELECT COUNT(*) AS cnt FROM FBI_Code WHERE crime_against = 'Property' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many districts are there in the police district building with a zip code of 60608? | SELECT COUNT(*) AS cnt FROM District WHERE zip_code = 60608 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Who is the crime against criminal sexual abuse? | SELECT crime_against FROM FBI_Code WHERE title = 'Criminal Sexual Abuse' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Which community has the highest number of neighborhoods? | SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no ORDER BY T2.community_area_no DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many severe crime incidents were reported at coordinate 41.64820151, -87.54430496? | SELECT SUM(CASE WHEN T1.longitude = '-87.54430496' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.report_no = T2.iucr_no WHERE T2.index_code = 'I' AND T1.latitude = '41.64820251' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Who is the commanding officer in the district with the highest number of reported crimes where no arrest has been made? | SELECT T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.arrest = 'FALSE' GROUP BY T2.commander ORDER BY COUNT(T1.report_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What are the general and specific descriptions of the most common crime incidents that happened in an aircraft? | SELECT T2.primary_description, T2.secondary_description FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.location_description = 'AIRCRAFT' GROUP BY T1.iucr_no ORDER BY COUNT(T1.iucr_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | Between Deering and Near West districts, which district reported the most number of crime incidents that happened in a library? | SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name IN ('Deering', 'Near West') AND T2.location_description = 'LIBRARY' GROUP BY T1.district_name ORDER BY COUNT(T2.district_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many arrests have been made due to forcible entry burglary that took place in a day care center? | SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.location_description = 'DAY CARE CENTER' AND T1.secondary_description = 'FORCIBLE ENTRY' AND T1.primary_description = 'BURGLARY' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the name of the district with the highest number of domestic violence cases? | SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.domestic = 'TRUE' GROUP BY T2.district_name ORDER BY COUNT(T1.district_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In the least populated community, what is the most common location of all the reported crime incidents? | SELECT T2.location_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.population = ( SELECT MIN(population) FROM Community_Area ) AND T2.location_description IS NOT NULL GROUP BY T2.location_description | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many violation of laws are there where no arrest has been made? | SELECT SUM(CASE WHEN T1.description LIKE '%The violation of laws%' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.Arrest = 'FALSE' | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | What is the precise coordinate of the location where simple assault incidents happened the most in Chatham? | SELECT T2.latitude, T2.longitude FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Simple Assault' AND T3.community_area_name = 'Chatham' AND T3.community_area_no = 44 ORDER BY T2.latitude DESC, T2.longitude DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | In the South side community, what is the name of the community with the most reported incidents of unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person? | SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.side = 'South' AND T1.description = 'The unlawful taking, carrying, leading, or riding away of property FROM the possession or constructive possession of another person.' GROUP BY T3.community_area_name ORDER BY COUNT(T1.fbi_code_no) DESC LIMIT 1 | bird |
CREATE TABLE chicago_crime (community_area_no integer, community_area_name text, side text, population text, district_no integer, district_name text, address text, zip_code integer, commander text, email text, phone text, fax text, tty text, twitter text, fbi_code_no text, title text, description text, crime_against text, iucr_no text, primary_description text, secondary_description text, index_code text, neighborhood_name text, community_area_no integer, ward_no integer, alderman_first_name text, alderman_last_name text, alderman_name_suffix text, ward_office_address text, ward_office_zip text, ward_email text, ward_office_phone text, ward_office_fax text, city_hall_office_room integer, city_hall_office_phone text, city_hall_office_fax text, Population integer, report_no integer, case_number text, date text, block text, iucr_no text, location_description text, arrest text, domestic text, beat integer, district_no integer, ward_no integer, community_area_no integer, fbi_code_no text, latitude text, longitude text) | How many crime against society were reported in Englewood? | SELECT SUM(CASE WHEN T3.community_area_name = 'Englewood' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.crime_against = 'Society' | bird |
Subsets and Splits