Chinastark/bird_dataset huggingface dataset:
Database: software_company
Question: List down the geographic identifier with an number of inhabitants less than 30.
Evidence: geographic identifier with an number of inhabitants less than 30 refers to GEOID where INHABITANTS_K < 30;
SQL: SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30
Database: software_company
Question: In geographic identifier from 10 to 30, how many of them has an income below 2000?
Evidence: GEOID BETWEEN 10 AND 30; INCOME_K < 2000;
SQL: SELECT COUNT(GEOID) FROM Demog WHERE INCOME_K < 2000 AND GEOID >= 10 AND GEOID <= 30
Database: software_company
Question: What is the marital status of the customer ages 62 with an level of education of 7?
Evidence: customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;
SQL: SELECT DISTINCT MARITAL_STATUS FROM Customers WHERE EDUCATIONNUM = 7 AND age = 62
Database: software_company
Question: List down the number of inhabitants of customers with a widowed marital status and false response .
Evidence: number of inhabitants refers to INHABITANTS_K; RESPONSE = 'false';
SQL: SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.MARITAL_STATUS = 'Widowed' AND T2.RESPONSE = 'true'
Database: software_company
Question: What is the response and number of inhabitants of the oldest female customer?
Evidence: number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);
SQL: SELECT T2.RESPONSE, T3.INHABITANTS_K FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' ORDER BY T1.age DESC LIMIT 1
Database: software_company
Question: Among the female customers with an level of education of 3 and below, list their income.
Evidence: female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM ≤ 3; income refers to INCOME_K;
SQL: SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 3 AND SEX = 'Female' )
Database: software_company
Question: List the level of education and income of customers ages from 30 to 55 with a true response.
Evidence: ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;
SQL: SELECT T1.EDUCATIONNUM, T3.INCOME_K FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.age >= 30 AND T1.age <= 55 AND T2.RESPONSE = 'true'
Database: software_company
Question: In male customers ages from 30 to 50, how many of them has an income ranges from 2000 to 2300?
Evidence: male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;
SQL: SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Male' AND T1.age >= 30 AND T1.age <= 50 AND T2.INCOME_K >= 2000 AND T2.INCOME_K <= 2300
Database: software_company
Question: List the educationnum and response of customers within the age of 20 to 30 that has the highest number of inhabitants among the group.
Evidence: age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);
SQL: SELECT T1.EDUCATIONNUM, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.age >= 20 AND T1.age <= 30 ORDER BY T3.INHABITANTS_K DESC LIMIT 1
Database: software_company
Question: What is the income of female customers ages from 30 to 55 years old and has an occupation of machine-op-inspct?
Evidence: female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;
SQL: SELECT T2.INCOME_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.age >= 30 AND T1.age <= 55 AND T1.OCCUPATION = 'Machine-op-inspct'
Database: software_company
Question: List the marital status and response of female customers with an level of education of 8 and above.
Evidence: female customers with an level of education of 8 and above refer to SEX = 'Female' where EDUCATIONNUM ≥ 8;
SQL: SELECT DISTINCT T1.MARITAL_STATUS, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.EDUCATIONNUM > 8 AND T1.SEX = 'Female'
Database: software_company
Question: What is the age of female customers within the number of inhabitants below 30?
Evidence: female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;
SQL: SELECT age FROM Customers WHERE GEOID IN ( SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30 ) AND SEX = 'Female'
Database: software_company
Question: Among the divorced male customers, give the income and response of those who has an level of education of 6 and above.
Evidence: divorced male customers refer to SEX = 'Male' where MARITAL_STATUS = 'Divorced';
SQL: SELECT DISTINCT T3.INCOME_K, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.EDUCATIONNUM > 6 AND T1.SEX = 'Male' AND T1.MARITAL_STATUS = 'Divorced'
Database: software_company
Question: What is the occupation and response of female customers within the number of inhabitants range of 20 to 25?
Evidence: female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;
SQL: SELECT DISTINCT T1.OCCUPATION, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' AND T3.INHABITANTS_K >= 20 AND T3.INHABITANTS_K <= 25
Database: software_company
Question: In male customers with an occupation handlers or cleaners, what is the percentage of customers with a true response?
Evidence: DIVIDE(COUNT(OCCUPATION = 'Handlers-cleaners', SEX = 'Male' and RESPONSE = 'true'), COUNT(OCCUPATION = 'Handlers-cleaners' and SEX = 'Male')) as percentage;
SQL: SELECT CAST(SUM(CASE WHEN T2.RESPONSE = 'true' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.REFID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.OCCUPATION = 'Handlers-cleaners' AND T1.SEX = 'Male'
Database: software_company
Question: List the income and number of inhabitants of customers with a reference ID greater than the 50% of average of number of false response?
Evidence: reference ID greater than the 50% of average of number of false response refers to REFID > DIVIDE(MULTIPLY(0.5, COUNT(RESPONSE = 'false')), COUNT(RESPONSE)); income refers to INCOME_K; number of inhabitants refer to INHABITANTS_K;
SQL: SELECT T2.INCOME_K, T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID INNER JOIN Mailings1_2 AS T3 ON T1.ID = T3.REFID WHERE T3.REFID > ( SELECT 0.5 * COUNT(CASE WHEN RESPONSE = 'false' THEN 1 ELSE NULL END) / COUNT(RESPONSE) FROM Mailings1_2 )
Database: software_company
Question: What is the ratio of male and female among the age of teenager when the education is above 10?
Evidence: ratio = DIVIDE(COUNT(SEX = 'Male' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10),COUNT(SEX = 'Female' where age BETWEEN 13 AND 19 and EDUCATIONNUM > 10));
SQL: SELECT CAST(SUM(CASE WHEN SEX = 'Male' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN SEX = 'Female' THEN 1 ELSE 0 END) FROM Customers WHERE age BETWEEN 13 AND 19 AND EDUCATIONNUM > 10
Database: software_company
Question: What is the geographic ID and total income per year when the average income is above 3300 dollar.
Evidence: total income per year refers to MULTIPLY(12, INHABITANTS_K, INCOME_K) where INCOME_K > 3300; geographic ID refers to GEOID;
SQL: SELECT GEOID, INHABITANTS_K * INCOME_K * 12 FROM Demog WHERE INCOME_K > 3300
Database: software_company
Question: Point out the greater one between the number of actual responding and not responding to mailing.
Evidence: COUNT(REFID where RESPONSE = 'true')>or<COUNT(REFID where RESPONSE = 'false');
SQL: SELECT RESPONSE FROM Mailings1_2 GROUP BY RESPONSE ORDER BY COUNT(RESPONSE) DESC LIMIT 1
Database: software_company
Question: Find out the yearly income of geographic ID when the customer is female and occupation as sales.
Evidence: yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';
SQL: SELECT T2.INHABITANTS_K * T2.INCOME_K * 12 FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.OCCUPATION = 'Sales'
Database: software_company
Question: Among the geographic ID which has 33.658K of inhabitants, describe the education, occupation and age of female widow.
Evidence: geographic ID which has 33.658K of inhabitants refers to GEOID where INHABITANTS_K = 33.658; education refers to EDUCATIONNUM; female widow refers to SEX = 'Female' where MARITAL_STATUS = 'Widowed';
SQL: SELECT T1.EDUCATIONNUM, T1.OCCUPATION, T1.age FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INHABITANTS_K = 33.658 AND T1.SEX = 'Female' AND T1.MARITAL_STATUS = 'Widowed'
Database: software_company
Question: Find the response status to customer whose geographic ID of 134.
Evidence: GEOID = 134;
SQL: SELECT T2.RESPONSE FROM Customers AS T1 INNER JOIN mailings3 AS T2 ON T1.ID = T2.REFID WHERE T1.GEOID = 134
Database: software_company
Question: Describe the average income per month and yearly income of the geographic ID in which customer of ID "209556" and "290135".
Evidence: the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);
SQL: SELECT T2.INCOME_K, T2.INHABITANTS_K * T2.INCOME_K * 12 FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.ID = 209556 OR T1.ID = 290135
Database: software_company
Question: Among the reference ID of under 10 who got response by marketing department, compare their education status.
Evidence: reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;
SQL: SELECT T1.EDUCATIONNUM FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T2.REFID < 10 AND T2.RESPONSE = 'true'
Database: chicago_crime
Question: How many community areas are there in Central Chicago?
Evidence: Central Chicago refers to side = 'Central'
SQL: SELECT COUNT(*) FROM Community_Area WHERE side = 'Central'
Database: chicago_crime
Question: Which district is the community area Lincoln Square grouped into?
Evidence: district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'
SQL: SELECT side FROM Community_Area WHERE community_area_name = 'Lincoln Square'
Database: chicago_crime
Question: Which district in Chicago has the most community areas?
Evidence: district refers to side; the most community areas refers to max(count(side))
SQL: SELECT side FROM Community_Area GROUP BY side ORDER BY COUNT(side) DESC LIMIT 1
Database: chicago_crime
Question: Which community area has the least population?
Evidence: community area refers to community_area_name; the least population refers to min(population)
SQL: SELECT community_area_name FROM Community_Area ORDER BY population ASC LIMIT 1
Database: chicago_crime
Question: Who is the person responsible for the crime cases in Central Chicago?
Evidence: the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'
SQL: SELECT commander FROM District WHERE district_name = 'Central'
Database: chicago_crime
Question: What is the email address to contact the administrator of Central Chicago?
Evidence: email address refers to email; Central Chicago refers to district_name = 'Central'
SQL: SELECT email FROM District WHERE district_name = 'Central'
Database: chicago_crime
Question: To which community area does the neighborhood Albany Park belong?
Evidence: community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'
SQL: SELECT T2.community_area_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Albany Park'
Database: chicago_crime
Question: How many neighborhoods are there in the community area of Lincoln Square?
Evidence: the community area of Lincoln Square refers to community_area_name = 'Lincoln Square'
SQL: SELECT COUNT(T3.community_area_no) FROM ( SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE community_area_name = 'Lincoln Square' GROUP BY T1.community_area_no ) T3
Database: chicago_crime
Question: Please list the names of all the neighborhoods in the community area with the most population.
Evidence: name of neighborhood refers to neighborhood_name; the most population refers to max(population)
SQL: SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T2.community_area_no ORDER BY T2.population DESC LIMIT 1
Database: chicago_crime
Question: Please list the names of all the neighborhoods in Central Chicago.
Evidence: name of neighborhood refers to neighborhood_name; Central Chicago refers to side = 'Central'
SQL: SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.side = 'Central'
Database: chicago_crime
Question: Please list the precise location coordinates of all the crimes in Central Chicago.
Evidence: location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'
SQL: SELECT T2.latitude, T2.longitude FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name = 'Central'
Database: chicago_crime
Question: How many crimes had happened in Central Chicago?
Evidence: Central Chicago refers to district_name = 'Central'
SQL: SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central'
Database: chicago_crime
Question: Among all the crimes that had happened in Central Chicago, how many of them were cases of domestic violence?
Evidence: Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'
SQL: SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.domestic = 'TRUE'
Database: chicago_crime
Question: Please list the case numbers of all the crimes with no arrest made in Central Chicago.
Evidence: no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'
SQL: SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.arrest = 'FALSE'
Database: chicago_crime
Question: How many crimes had happened in the community area with the most population?
Evidence: the most population refers to max(population)
SQL: SELECT COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no GROUP BY T1.community_area_name ORDER BY T1.population DESC LIMIT 1
Database: chicago_crime
Question: Among the crimes in Woodlawn, how many of them happened in January, 2018?
Evidence: Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'
SQL: SELECT SUM(CASE WHEN T1.community_area_name = 'Woodlawn' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.date LIKE '%1/2018%'
Database: chicago_crime
Question: More crimes happened in which community area in January, 2018, Woodlawn or Lincoln Square?
Evidence: in January 2018 refers to date like '%1/2018%'; Woodlawn or Lincoln Square refers to community_area_name in ('Woodlawn', 'Lincoln Square'); number of crime refers to COUNT(report_no); the higher the report_no, the more crimes happened in the community;
SQL: SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name IN ('Woodlawn', 'Lincoln Square') AND T2.date LIKE '%1/2018%' GROUP BY T1.community_area_name ORDER BY COUNT(T1.community_area_name) DESC LIMIT 1
Database: chicago_crime
Question: What is the fax number for the district with the most number of crimes in January, 2018?
Evidence: fax number refers to fax; the most number of crimes refers to max(count(case_number)); in January 2018 refers to date like '%1/2018%'
SQL: SELECT T1.fax FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.date LIKE '%1/2018%' GROUP BY T2.district_no ORDER BY COUNT(case_number) DESC LIMIT 1
Database: chicago_crime
Question: What is the average number of crimes in a neighborhood in Central Chicago?
Evidence: Central Chicago refers to side = 'Central'; average number = divide(count(report_no), count(community_area_no))
SQL: SELECT CAST(COUNT(T1.report_no) AS REAL) / COUNT(T2.community_area_no) FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.side = 'Central'
Database: chicago_crime
Question: Among the crimes in all the districts in Chicago, what is the percentage of them happening in the Central district?
Evidence: the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T2.district_name = 'Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no
Database: chicago_crime
Question: How many community areas are in the Far North side?
Evidence: the Far North side refers to side = 'Far North'
SQL: SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North '
Database: chicago_crime
Question: Who is the commander of Morgan Park district?
Evidence: Morgan Park district refers to district_name = 'Morgan Park'
SQL: SELECT commander FROM District WHERE district_name = 'Morgan Park'
Database: chicago_crime
Question: Where did case No. JB100065 happen? Give the name of the district.
Evidence: case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name
SQL: SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB100065'
Database: chicago_crime
Question: Where is the coordinate (41.66236555, -87.63470194) located? Give the name of the district.
Evidence: coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name
SQL: SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.longitude = '-87.63470194' AND T1.latitude = '41.66236555'
Database: chicago_crime
Question: Give the name of the person who was responsible for case No.JB524952.
Evidence: name of the person refers to commander; case No.JB524952 refers to case_number = 'JB524952'
SQL: SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB524952'
Database: chicago_crime
Question: How many simple assaults happened on 2018/9/8?
Evidence: simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'
SQL: SELECT SUM(CASE WHEN T2.secondary_description = 'SIMPLE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.date LIKE '%9/8/2018%' AND T2.primary_description = 'ASSAULT'
Database: chicago_crime
Question: Which district had the most number of first degree murders? Give the district number.
Evidence: the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no
SQL: SELECT T2.district_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.secondary_description = 'FIRST DEGREE MURDER' GROUP BY T2.district_no ORDER BY COUNT(*) DESC LIMIT 1
Database: chicago_crime
Question: How severe was case JB296775? Give the index code for severity.
Evidence: index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'
SQL: SELECT T2.iucr_no FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.case_number = 'JB296775'
Database: chicago_crime
Question: Give the name of the community area which had the most pocket-picking thefts.
Evidence: name of the community area refers to community_area_name; the most refers to max(case_number); pocket-picking theft refers to primary_description = 'THEFT' AND secondary_description = 'POCKET-PICKING'
SQL: SELECT T3.community_area_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.primary_description = 'THEFT' AND T1.secondary_description = 'POCKET-PICKING' GROUP BY T2.community_area_no ORDER BY T2.case_number DESC LIMIT 1
Database: chicago_crime
Question: Who was the alderman of the legislative district where case No. JB103470 took place? Give the full name.
Evidence: case No. JB103470 refers to case_number = 'JB103470'; full name refers to alderman_first_name, alderman_last_name
SQL: SELECT T1.alderman_first_name, T1.alderman_last_name FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.case_number = 'JB103470'
Database: chicago_crime
Question: Give the neighborhood name of West Englewood community.
Evidence: West Englewood community refers to community_area_name = 'West Englewood'
SQL: SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.community_area_name = 'West Englewood'
Database: chicago_crime
Question: How many different neighborhoods are there in Roseland community?
Evidence: Roseland community refers to community_area_name = 'Roseland'
SQL: SELECT SUM(CASE WHEN T1.community_area_name = 'Roseland' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no
Database: chicago_crime
Question: Give the FBI code description of case No.JB134191.
Evidence: case No.JB134191 refers to case_number = 'JB134191'
SQL: SELECT description FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.case_number = 'JB134191'
Database: chicago_crime
Question: Tell the number of cases with arrests in North Lawndale community.
Evidence: number of cases refers to count(case_number); arrest refers to arrest = 'TRUE'; North Lawndale community refers to community_area_name = 'North Lawndale'
SQL: SELECT SUM(CASE WHEN T1.community_area_name = 'North Lawndale' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.arrest = 'TRUE'
Database: chicago_crime
Question: What is the percentage of under $500 thefts among all cases that happened in West Englewood?
Evidence: under $500 refers to secondary_description = '$500 AND UNDER'; theft refers to primary_description = 'THEFT'; West Englewood refers to community_area_name = 'West Englewood'; percentage = divide(count(case_number where secondary_description = '$500 AND UNDER'), count(case_number)) where primary_description = 'THEFT' and community_area_name = 'West Englewood' * 100%
SQL: SELECT CAST(SUM(CASE WHEN T2.secondary_description = '$500 AND UNDER' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) 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 = 'THEFT' AND T3.community_area_name = 'West Englewood'