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: 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
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 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
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: 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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
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: 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
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 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
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 much salary does Jessica Anthony receive?
SQL: SELECT salary FROM employee WHERE first_name = 'Jessica' AND last_name = 'Anthony'
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 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
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 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
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: 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
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 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
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 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
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 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
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: 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
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: 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
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: 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