Chinastark/bird_dataset huggingface dataset:
Database: food_inspection_2
Question: List the types and results of the inspections done on Riverwalk café.
Evidence: type refers to inspection_type; Riverwalk café refers to facility_type = 'RIVERWALK CAFE'
SQL: SELECT T2.inspection_type, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.facility_type = 'RIVERWALK CAFE'
Database: food_inspection_2
Question: Who inspected Jean Samocki and what was the result?
Evidence: employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'
SQL: SELECT T3.first_name, T3.last_name, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T1.dba_name = 'JEAN SAMOCKI'
Database: food_inspection_2
Question: How much did Hacienda Los Torres from ward 36 fine for failing an inspection?
Evidence: Hacienda Los Torres refers to dba_name = 'HACIENDA LOS TORRES'; ward 36 refers to ward = 36; failing an inspection refers to results = 'Fail';
SQL: SELECT SUM(T3.fine) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.dba_name = 'HACIENDA LOS TORRES' AND T1.ward = 36 AND T2.results = 'Fail'
Database: food_inspection_2
Question: Calculate the total amount of fine under the food equipment and utensil category.
Evidence: under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'
SQL: SELECT SUM(T2.fine) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Food Equipment and Utensil'
Database: food_inspection_2
Question: Provide the names and locations of the facilities that failed inspections on 29th July 2013.
Evidence: name refers to dba_name; location refers to latitude, longitude; failed inspections refers to results = 'Fail'; on 29th July 2013 refers to inspection_date = '2013-07-29'
SQL: SELECT T2.dba_name, T2.longitude, T2.latitude FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T1.inspection_date = '2013-07-29' AND T1.results = 'Fail'
Database: food_inspection_2
Question: Calculate the percentage of inspections with verified quality. Among them, how many businesses were from Chicago?
Evidence: verified quality refers to results like 'Pass%'; from Chicago refers to city = 'CHICAGO'; percentage = divide(count(inspection_id where results like 'Pass%'), sum(inspection_id)) * 100%
SQL: SELECT CAST(COUNT(CASE WHEN T2.results LIKE '%Pass%' THEN T2.inspection_id END) AS REAL) * 100 / COUNT(T2.inspection_id), COUNT(DISTINCT T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.city = 'CHICAGO'
Database: food_inspection_2
Question: Calculate the average inspections per year done by Jessica Anthony from 2010 to 2017.
Evidence: from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)
SQL: SELECT CAST(COUNT(CASE WHEN T1.first_name = 'Jessica' AND T1.last_name = 'Anthony' THEN T2.inspection_id ELSE 0 END) AS REAL) / 8 FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y', T2.inspection_date) BETWEEN '2010' AND '2017'
Database: food_inspection_2
Question: Provide the first name of employee who did inspection ID 48225?
SQL: SELECT T1.first_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 48225
Database: food_inspection_2
Question: Tell the address of employee who did inspection ID 52238?
SQL: SELECT T1.address FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238
Database: food_inspection_2
Question: Write down the last name of employee who did inspection ID 52238?
SQL: SELECT T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238
Database: food_inspection_2
Question: What is the inspection result for inspection done by Thomas Langley?
Evidence: inspection result refers to results
SQL: SELECT DISTINCT T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Thomas' AND T1.last_name = 'Langley'
Database: food_inspection_2
Question: List down the address of employees who did inspection dated 11/5/2010.
Evidence: dated 11/5/2010 refers to inspection_date = '2010-11-05'
SQL: SELECT DISTINCT T1.address FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-11-05'
Database: food_inspection_2
Question: List down the phone numbers of employees who did Canvass inspection.
Evidence: phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'
SQL: SELECT DISTINCT T1.phone FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_type = 'Canvass'
Database: food_inspection_2
Question: What is the job title of employee who did inspection ID 52269?
Evidence: job title refers to title
SQL: SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52269
Database: food_inspection_2
Question: What are the inspection results for Xando Coffee & Bar / Cosi Sandwich Bar?
Evidence: Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
SQL: SELECT DISTINCT T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'
Database: food_inspection_2
Question: What type of inspection was done at John Schaller?
Evidence: type of inspection refers to inspection_type; John Schaller refers to dba_name = 'JOHN SCHALLER'
SQL: SELECT DISTINCT T2.inspection_type FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'JOHN SCHALLER'
Database: food_inspection_2
Question: List down the dba name of restaurants that were inspected due to license.
Evidence: inspected due to license refers to inspection_type = 'License'
SQL: SELECT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_type = 'License'
Database: food_inspection_2
Question: How many inspections done in 2010 had serious food safety issue?
Evidence: in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3
SQL: SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T1.risk_level = 3
Database: food_inspection_2
Question: State the name of dbas with verified quality.
Evidence: name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'
SQL: SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results LIKE '%Pass%'
Database: food_inspection_2
Question: Calculate the total salary for employees who did inspection from ID 52270 to 52272.
Evidence: inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272
SQL: SELECT SUM(T2.salary) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id BETWEEN 52270 AND 52272
Database: food_inspection_2
Question: Calculate the average salary for employees who did inspection on License Re-Inspection.
Evidence: inspection on License Re-Inspection refers to inspection_type = 'License Re-Inspection'; average salary = avg(salary)
SQL: SELECT AVG(T2.salary) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_type = 'License Re-Inspection'
Database: food_inspection_2
Question: Did license number 1222441 pass the inspection and what is the zip code number of it?
Evidence: license number 1222441 refers to license_no = 1222441; result of the inspection refers to results; zip code number refers to zip
SQL: SELECT DISTINCT T2.results, T1.zip FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.license_no = 1222441
Database: food_inspection_2
Question: When did restaurant John Schaller has its first inspection in 2010?
Evidence: John Schaller refers to dba_name = 'JOHN SCHALLER'; first inspection refers to min(inspection_date); in 2010 refers to inspection_date like '2010%'
SQL: SELECT MIN(T2.inspection_date) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'JOHN SCHALLER' AND strftime('%Y', T2.inspection_date) = '2010'
Database: food_inspection_2
Question: What is the full name of the employee that inspected establishments with license 1334073?
Evidence: full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073
SQL: SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.license_no = 1334073
Database: food_inspection_2
Question: Which establishments did Joshua Rosa inspect?
Evidence: establishment name refers to dba_name
SQL: SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa'
Database: food_inspection_2
Question: How many employees have salary greater than 70000 but fail the inspection?
Evidence: salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'
SQL: SELECT COUNT(DISTINCT T1.employee_id) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.results = 'Fail' AND T1.salary > 70000
Database: food_inspection_2
Question: Name the food businesses that passed the inspection in 2010.
Evidence: business name refers to dba_name; food business refers to restaurant; pass the inspection refers to results = 'Pass'; in 2010 refers to inspection_date like '2010%'
SQL: SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T2.results = 'Pass' AND T1.facility_type = 'Liquor'
Database: food_inspection_2
Question: What is the name of the establishment that Joshua Rosa inspected?
Evidence: name of the establishment refers to dba_name
SQL: SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa'
Database: food_inspection_2
Question: How many taverns failed in July 2010?
Evidence: tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'
SQL: SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-07' AND T2.results = 'Fail' AND T1.facility_type = 'Restaurant'
Database: food_inspection_2
Question: What is the risk level of the establishment that Bob Benson inspected?
SQL: SELECT DISTINCT T3.risk_level FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Bob' AND T1.last_name = 'Benson'
Database: food_inspection_2
Question: Which establishments did Bob Benson inspect in 2010 and what was the results?
Evidence: establishment name refers to dba_name; in 2010 refers to inspection_date like '2010%'
SQL: SELECT DISTINCT T3.dba_name, T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Bob' AND T1.last_name = 'Benson' AND strftime('%Y', T2.inspection_date) = '2010'
Database: food_inspection_2
Question: What is the title of the employee that inspected the establishment with license number 1576687?
Evidence: license number 1576687 refers to license_no = 1576687
SQL: SELECT DISTINCT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.license_no = 1576687
Database: food_inspection_2
Question: How many inspection points with serious point level that have no fine?
Evidence: serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0
SQL: SELECT COUNT(DISTINCT T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.point_level = 'Serious ' AND T2.fine = 0
Database: food_inspection_2
Question: What is the percentage of restaurants that paid a fine of 250 among all establishments?
Evidence: a fine of 250 refers to fine = 250; percentage = divide(sum(license_no where fine = 250), count(license_no)) * 100%
SQL: SELECT CAST(COUNT(CASE WHEN T3.fine = 250 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Restaurant'
Database: food_inspection_2
Question: What is the percentage of establishments with a risk level of 1 among all of the establishments that passed the inspection?
Evidence: a risk level of 1 refers to risk_level = 1; pass the inspection refers to results = 'Pass'; percentage = divide(sum(license_no where risk_level = 1), count(license_no)) * 100% where results = 'Pass'
SQL: SELECT CAST(COUNT(CASE WHEN T1.risk_level = 1 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results = 'Pass'
Database: food_inspection_2
Question: Where does the employee named "Standard Murray" live?
Evidence: address refers to address, city, state
SQL: SELECT address, city, state FROM employee WHERE first_name = 'Standard' AND last_name = 'Murray'
Database: food_inspection_2
Question: What is the facility type of the establishment named "Kinetic Playground"?
Evidence: the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground'
SQL: SELECT facility_type FROM establishment WHERE dba_name = 'Kinetic Playground'
Database: food_inspection_2
Question: What is the restaurant's name at "41.9532864854" latitude and "-87.7673790701422" longitude?
Evidence: restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; "41.9532864854" latitude and "-87.7673790701422" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422
SQL: SELECT dba_name FROM establishment WHERE latitude = 41.9532864854 AND longitude = -87.7673790701422 AND facility_type = 'Restaurant'
Database: food_inspection_2
Question: Among the list of employees, what is the total number of supervisors?
Evidence: supervisor refers to title = 'Supervisor'
SQL: SELECT COUNT(employee_id) FROM employee WHERE title = 'Supervisor'
Database: food_inspection_2
Question: Where in Chicago does the restaurant named "Old Timers Rest & Lounge" located?
Evidence: in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; "Old Timers Rest & Lounge" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address
SQL: SELECT address FROM establishment WHERE city = 'CHICAGO' AND dba_name = 'OLD TIMERS REST & LOUNGE' AND facility_type = 'Restaurant'
Database: food_inspection_2
Question: How many employees are living in Hoffman Estates, IL?
Evidence: in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'
SQL: SELECT COUNT(employee_id) FROM employee WHERE state = 'IL' AND city = 'Hoffman Estates'
Database: food_inspection_2
Question: What is the total number of establishments with the highest risk level?
Evidence: total number of establishments with the highest risk level = count(max(risk_level))
SQL: SELECT COUNT(license_no) FROM establishment WHERE risk_level = 3
Database: food_inspection_2
Question: Who is the employee that receives 82700 as their salary?
Evidence: employee name refers to first_name, last_name; receives 82700 as salary refers to salary = 82700
SQL: SELECT first_name, last_name FROM employee WHERE salary = 82700
Database: food_inspection_2
Question: Provide the last name of the employee involved in the inspection ID 52256.
SQL: SELECT DISTINCT T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52256
Database: food_inspection_2
Question: Please list the names of taverns that paid a $100 fine upon inspection.
Evidence: name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100
SQL: SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Tavern' AND T3.fine = 100
Database: food_inspection_2
Question: List point level of inspections with no fine.
Evidence: no fine refers to fine = 0
SQL: SELECT DISTINCT T1.point_level FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.fine = 0
Database: food_inspection_2
Question: Provide the facility type and license number of establishments with the lowest risk level but failed the inspection.
Evidence: license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'
SQL: SELECT DISTINCT T1.facility_type, T1.license_no FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 1 AND T2.results = 'Fail'
Database: food_inspection_2
Question: What is the result of the February 24, 2010 inspection involving the employee named "Arnold Holder"?
Evidence: February 24, 2010 refers to inspection_date = '2010-02-24'
SQL: SELECT DISTINCT T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-02-24' AND T1.first_name = 'Arnold' AND T1.last_name = 'Holder'
Database: food_inspection_2
Question: How many restaurants failed the inspection in April 2010?
Evidence: restaurant refers to facility_type = 'Restaurant'; failed the inspection refers to results = 'Fail'; in April 2010 refers to inspection_date like '2010-04%'
SQL: SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-04' AND T1.facility_type = 'Restaurant' AND T2.results = 'Fail'
Database: food_inspection_2
Question: List all inspection IDs where the employee named "Rosemary Kennedy" was involved.
SQL: SELECT DISTINCT T2.inspection_id FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Rosemary' AND T1.last_name = 'Kennedy'
Database: food_inspection_2
Question: What type of inspection was done on July 07, 2010, involving the employee named "Lisa Tillman"?
Evidence: type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'
SQL: SELECT DISTINCT T2.inspection_type FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Lisa' AND T1.last_name = 'Tillman' AND T2.inspection_date = '2010-07-07'
Database: food_inspection_2
Question: Provide the inspection ID of the inspection with the comment "MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA" and sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A).
Evidence: comment "MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'
SQL: SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA' AND T1.code = '7-38-030, 015, 010 (A), 005 (A)'
Database: food_inspection_2
Question: List down the names of the establishments with the highest risk level and failed the inspection.
Evidence: name of establishment refers to dba_name; the highest risk level refers to max(risk_level); failed the inspection refers to results = 'Fail'
SQL: SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 3 AND T2.results = 'Fail'
Database: food_inspection_2
Question: What is the inspection ID where the employee named "David Hodges" is currently employed in the "Kamayan Express" establishment?
Evidence: the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS'
SQL: SELECT T2.inspection_id FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T3.first_name = 'David' AND T3.last_name = 'Hodges' AND T1.dba_name = 'KAMAYAN EXPRESS'
Database: food_inspection_2
Question: Provide the salary range of the employee involved in the inspection ID 58424.
SQL: SELECT T1.salary, T3.salary FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN employee AS T3 WHERE T2.inspection_id = 58424 ORDER BY T1.salary, T3.salary DESC LIMIT 1
Database: food_inspection_2
Question: List down the inspection ID with the inspector's comment "A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED" and inspection category of Personnel.
Evidence: inspector's comment "A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'
SQL: SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Personnel' AND T2.inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'
Database: food_inspection_2
Question: How many grocery stores paid $250 fine upon their inspection?
Evidence: grocery store refers to facility_type = 'Grocery Store'; $250 fine refers to fine = 250
SQL: SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Grocery Store' AND T3.fine = 250
Database: food_inspection_2
Question: What is the category of the inspection of the establishment named "J & J FOOD"?
Evidence: the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD'
SQL: SELECT DISTINCT T4.category FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T1.dba_name = 'J & J FOOD'