1sf/bird-sql-train-with-schema huggingface dataset:
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: What is the average number of reckless homicides that happened in a district?
Evidence: "RECKLESS HOMICIDE" is the secondary_description; average = Divide (Count(report_no), Count(district_name))
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: Find the ward office's address and phone number of the ward where the most crimes without arrest occurred.
Evidence: the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address
SQL: 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
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: Give the case number and coordinates of the places where child abduction is reported.
Evidence: "CHILD ABDUCTION" is the secondary_description; coordinates refers to latitude, longitude
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: What is the most reported crime in the Northwest side?
Evidence: most reported crime refers to max(Count(secondary_description))
SQL: 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
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: Find the community area where the least number of domestic crimes happened.
Evidence: least number of domestic crime refers to Min(Count(domestic = "TRUE")); community area refers to community_area_no
SQL: 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
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: In drug abuse crimes, what percentage is related to cannabis?
Evidence: drug abuse crime refer to title = 'Drug Abuse'; percentage = Divide (Count (secondary_description LIKE '%CANNABIS%'), Count (secondary_description)) * 100
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: What is the average number of less severe crimes reported a day in February of 2018?
Evidence: day in February of 2018 refers to date LIKE '2/%/2018'; less severe crime refers to index_code = 'N'; average = Divide (Count(case_number), 28)
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: List the name and population of the communities where more than average solicit for prostitutes were reported.
Evidence: "SOLICIT FOR PROSTITUTE" is the secondary_description; more than average refers to count(iucr_no) > Divide (Count(secondary_description = 'SOLICIT FOR PROSTITUTE'), Count(iucr_no)); name of community refers to community_area_name
SQL: 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 ) )
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: Among the incidents reported in Harrison, what percentage are disorderly conduct?
Evidence: "Harrison" is the district_name;  'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: Calculate the difference in the average number of vehicular hijackings and aggravated vehicular hijackings in the districts.
Evidence: "VEHICULAR HIJACKING" and "AGGRAVATED VEHICULAR HIJACKING" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = "AGGRAVATED VEHICULAR HIJACKING"), Count(district_name)))
SQL: 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
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: How many crimes happened in longitude -8772658001?
SQL: SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: List all the crimes of the narcotic type that exist.
Evidence: narcotic type refers to primary_description = 'NARCOTICS'; crime refers to secondary_description
SQL: SELECT secondary_description FROM IUCR WHERE primary_description = 'NARCOTICS' GROUP BY secondary_description
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: What is the first name of the aldermen of wards with more than 50,000 inhabitants?
Evidence: more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name
SQL: SELECT alderman_first_name FROM Ward WHERE Population > 50000
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: List crimes that the FBI has classified as Drug Abuse by their report number.
Evidence: "Drug Abuse" is the title of crime
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: How many weapons violation crimes have occurred in the Calumet district?
Evidence: "Calumet" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime
SQL: 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'
Database: chicago_crime
Tables: Community_Area, District, FBI_Code, IUCR, Neighborhood, Ward, Crime
Columns (table index, column name): -1, *, 0, community_area_no, 0, community_area_name, 0, side, 0, population, 1, district_no, 1, district_name, 1, address, 1, zip_code, 1, commander, 1, email, 1, phone, 1, fax, 1, tty, 1, twitter, 2, fbi_code_no, 2, title, 2, description, 2, crime_against, 3, iucr_no, 3, primary_description, 3, secondary_description, 3, index_code, 4, neighborhood_name, 4, community_area_no, 5, ward_no, 5, alderman_first_name, 5, alderman_last_name, 5, alderman_name_suffix, 5, ward_office_address, 5, ward_office_zip, 5, ward_email, 5, ward_office_phone, 5, ward_office_fax, 5, city_hall_office_room, 5, city_hall_office_phone, 5, city_hall_office_fax, 5, Population, 6, report_no, 6, case_number, 6, date, 6, block, 6, iucr_no, 6, location_description, 6, arrest, 6, domestic, 6, beat, 6, district_no, 6, ward_no, 6, community_area_no, 6, fbi_code_no, 6, latitude, 6, longitude
Question: What is the exact location of the crimes that occurred in the Belmont Cragin community?
Evidence: Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude
SQL: 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