1sf/bird-sql-train-with-schema huggingface dataset:
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: Among the inspections done by sanitarian Joshua Rosa, how many of them have the result of "pass"?
Evidence: have the result of "pass" refers to results = 'Pass'
SQL: SELECT COUNT(T2.inspection_id) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.results = 'Pass' AND T1.first_name = 'Joshua' AND T1.last_name = 'Rosa'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: After Azha Restaurant Inc. passed the inspection on 2010/1/21, when was the follow-up inspection done?
Evidence: Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to
SQL: SELECT T1.followup_to FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T2.dba_name = 'Azha Restaurant Inc.' AND T1.results = 'Pass' AND T1.inspection_date = '2010-01-21'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: Among the facilities that had undergone at least one inspection in 2010, how many of them have the most serious food safety issues?
Evidence: in 2010 refers to inspection_date like '2010%'; the most serious food safety issues refers to risk_level = 3
SQL: SELECT COUNT(DISTINCT T2.license_no) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T1.inspection_date) = '2010' AND T2.risk_level = 3
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: What is the average number of inspections carried out in the year 2010 by a sanitarian whose salary is over 70000?
Evidence: in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))
SQL: SELECT CAST(SUM(CASE WHEN T2.inspection_date LIKE '2010%' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.salary > 70000 THEN 1 ELSE 0 END) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: What is the point level of "Refrigeration and metal stem thermometers provided and conspicuous"?
Evidence: "Refrigeration and metal stem thermometers provided and conspicuous" refers to Description = 'Refrigeration and metal stem thermometers provided and conspicuous '
SQL: SELECT point_level FROM inspection_point WHERE Description = 'Refrigeration and metal stem thermometers provided and conspicuous '
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: Which employee was responsible for inspection no.48224? Give the full name.
Evidence: inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;
SQL: SELECT T2.first_name, T2.last_name FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id = 48224
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: How many inspections did All Style Buffet Restaurant have?
Evidence: All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'
SQL: SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.facility_type = 'Restaurant' AND T1.dba_name = 'All Style Buffet'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: When did Wing Hung Chop Suey Restaurant have its first inspection?
Evidence: Wing Hung Chop Suey Restaurant refers to aka_name = 'WING HUNG CHOP SUEY RESTAURANT'; first inspection refers to min(inspection_date)
SQL: SELECT MIN(T2.inspection_date) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.aka_name = 'WING HUNG CHOP SUEY RESTAURANT'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: How many restaurants were inspected on 2015/5/8?
Evidence: restaurant refers to facility_type = 'Restaurant'; on 2015/5/8 refers to inspection_date = '2015-05-08'
SQL: SELECT COUNT(T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_date = '2015-05-08' AND T1.facility_type = 'Restaurant'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: How many "food maintenance" related violations did inspection no.1454071 have?
Evidence: "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'
SQL: SELECT COUNT(T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = '1454071' AND T1.category = 'Food Maintenance'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: State the number of violations did Royal Thai Cuisine has during the 2015/5/8 inspection.
Evidence: Royal Thai Cuisine refers to dba_name = 'ROYAL THAI CUISINE'; 2015/5/8 refers to inspection_date = '2015-05-08'
SQL: SELECT COUNT(T3.point_id) 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 T2.inspection_date = '2015-05-08' AND T1.dba_name = 'ROYAL THAI CUISINE'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: For the grocery store located at "3635 W DIVERSEY AVE", how many inspections did it have?
Evidence: grocery store refers to facility_type = 'Grocery Store'; "3635 W DIVERSEY AVE" refers to address = '3635 W DIVERSEY AVE'
SQL: SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.address = '3635 W DIVERSEY AVE ' AND T1.facility_type = 'Grocery Store'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: Who is responsible for most of the inspections? Give the full name.
Evidence: full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))
SQL: SELECT T.first_name, T.last_name FROM ( SELECT T2.employee_id, T2.first_name, T2.last_name, COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id GROUP BY T2.employee_id, T2.first_name, T2.last_name ORDER BY COUNT(T1.inspection_id) DESC LIMIT 1 ) AS T
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: How many inspections done by Lisa Tillman ended up with the result of "Out of Business"?
Evidence: the result of "Out of Business" refers to results = 'Out of Business'
SQL: SELECT COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T2.first_name = 'Lisa' AND T2.last_name = 'Tillman' AND T1.results = 'Out of Business'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: For the sanitarian who lives on 5000 N Wolcott Ave, how many establishments did he/she inspect in the May of 2011?
Evidence: sanitarian refers to title = 'Sanitarian'; 5000 N Wolcott Ave refers to address = '5000 N Wolcott Ave'; in May 2011 refers to inspection_date between '2011-04-30' and '2011-06-01'
SQL: SELECT COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T2.address = '5000 N Wolcott Ave' AND T2.title = 'Sanitarian' AND strftime('%Y-%m', T1.inspection_date) = '2011-05'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: Show the phone number of the sanitarian who was responsible for inspection no.634597.
Evidence: phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'
SQL: SELECT T2.phone FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id = 634597 AND T2.title = 'Sanitarian'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: State the salary of the employee who did the most inspections.
Evidence: the most inspections refers to max(count(employee_id))
SQL: SELECT T1.salary FROM employee AS T1 INNER JOIN ( SELECT T.employee_id, COUNT(T.inspection_id) FROM inspection AS T GROUP BY T.employee_id ORDER BY COUNT(T.inspection_id) DESC LIMIT 1 ) AS T2 ON T1.employee_id = T2.employee_id
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: What is the average number of inspections did risk level 3 taverns have?
Evidence: risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'
SQL: SELECT CAST(COUNT(T2.inspection_id) AS REAL) / COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 3 AND T1.facility_type = 'TAVERN'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: State the inspection pass rate of Pockets Restaurant.
Evidence: Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'
SQL: SELECT CAST(COUNT(CASE WHEN T2.results = 'Pass' THEN T2.inspection_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'POCKETS' AND T1.facility_type = 'Restaurant'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: How many sanitarian employees in Chicago are from the zip code 60617?
Evidence: sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617
SQL: SELECT COUNT(employee_id) FROM employee WHERE zip = '60617'
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: What is the assumed name of the business located at 2903 W Irving Park Rd?
Evidence: assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '
SQL: SELECT DISTINCT dba_name FROM establishment WHERE address = '2903 W IRVING PARK RD '
Database: food_inspection_2
Tables: employee, establishment, inspection, inspection_point, violation
Columns (table index, column name): -1, *, 0, employee_id, 0, first_name, 0, last_name, 0, address, 0, city, 0, state, 0, zip, 0, phone, 0, title, 0, salary, 0, supervisor, 1, license_no, 1, dba_name, 1, aka_name, 1, facility_type, 1, risk_level, 1, address, 1, city, 1, state, 1, zip, 1, latitude, 1, longitude, 1, ward, 2, inspection_id, 2, inspection_date, 2, inspection_type, 2, results, 2, employee_id, 2, license_no, 2, followup_to, 3, point_id, 3, Description, 3, category, 3, code, 3, fine, 3, point_level, 4, inspection_id, 4, point_id, 4, fine, 4, inspector_comment
Question: What is the full name of the employee with the lowest salary?
Evidence: full name refers to first_name, last_name; the lowest salary refers to min(salary)
SQL: SELECT first_name, last_name FROM employee ORDER BY salary ASC LIMIT 1