query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
What is the description of the low risk violation of Tiramisu Kitchen on 2014/1/14? | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | in 2014 refers to year(date) = 2014; risk_category = 'Low Risk'; | owner's name of businesses refers to owner_name; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | eateries refer to business_id; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; |
Give the description of the moderate risk violation which "Chez Fayala, Inc." had on 2016/7/1. | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | eateries refer to business_id; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | "Rue Lepic" is the name of the business; |
How many establishments have an inspection score of no more than 50? | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | the lowest inspection score refers to MIN(score); | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | eateries represent business; highest score in inspection refers to score = 100; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | eateries refer to business_id; | owner's name of businesses refers to owner_name; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; |
In the violations in 2014, how many of them have a low risk category? | in 2014 refers to year(date) = 2014; risk_category = 'Low Risk'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | eateries refer to business_id; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; |
Which business had the most number of inspections? Give the Id number for that business. | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | eateries refer to business_id; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | "Rue Lepic" is the name of the business; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; |
How many of the businesses are located at 1825 POST St #223, San Francisco? | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100; | the lowest inspection score refers to MIN(score); | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; |
What was the inspection type when El Aji Peruvian Restaurant got highest inspection score? | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup'; | businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90; | owner's name of businesses refers to owner_name; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; |
Describe the violation dates, risk categories, descriptions and names of the eateries under Jade Chocolates LLC. | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | zip code 94104 refers to owner_zip = '94104'; | owner's name of businesses refers to owner_name; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; |
In businesses with a score lower than 95 and located around the postal code of 94110, what is the percentage of businesses with a risk category of low risk? | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | owner's name of businesses refers to owner_name; | restaurants' owners in California refer to owner_state = 'CA'; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | eateries with tax code AA refer to business_id where tax_code = 'AA'; |
How many eateries applied in 2012? | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | "Rue Lepic" is the name of the business; | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | restaurants' owners in California refer to owner_state = 'CA'; |
In businesses that violates 103157 on May 27, 2016 , what is the name of the business that has an unscheduled inspection? | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup'; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; |
Among the businesses within the postal code 94117, what is total number of businesses with a high risk category? | businesses with a high risk category refer to business_id where risk_category = 'High Risk'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | zip code 94104 refers to owner_zip = '94104'; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | eateries represent business; highest score in inspection refers to score = 100; |
When did eateries from San Bruno city get highest score in inspection? | eateries represent business; highest score in inspection refers to score = 100; | restaurants' owners in California refer to owner_state = 'CA'; | "Rue Lepic" is the name of the business; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; |
Which establishment has the highest number of inspections done? Give the name of the establishment and calculate for its average score per inspection. | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | the lowest inspection score refers to MIN(score); | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); |
Among the routine inspections of Tiramisu Kitchen, how many of them have a score of over 70? | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | "Rue Lepic" is the name of the business; | the lowest inspection score refers to MIN(score); | eateries refer to business_id; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; |
List owner's name of businesses with a 100 score. | owner's name of businesses refers to owner_name; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | zip code 94104 refers to owner_zip = '94104'; | the lowest inspection score refers to MIN(score); | in 2014 refers to year(date) = 2014; risk_category = 'Low Risk'; | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | eateries represent business; highest score in inspection refers to score = 100; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); |
How many high risk violations do the restaurants in San Francisco have in total? | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | in 2014 refers to year(date) = 2014; risk_category = 'Low Risk'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; |
What is the average score of the establishments owned by the owner with the highest number of establishments? | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | eateries refer to business_id; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | eateries represent business; highest score in inspection refers to score = 100; |
Who is the owner of the business that has a high risk violation of 103109 and described as unclean or unsanitary food contact surfaces? | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | "Rue Lepic" is the name of the business; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | owner's name of businesses refers to owner_name; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; |
Among the top 5 owners with highest number of establishments, which owner has the highest number of high risk violations? Give the name of the owner. | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | restaurants' owners in California refer to owner_state = 'CA'; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | owner's name of businesses refers to owner_name; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; |
List the business' name and risk category of businesses with a score greater than the 80% of average score of all businesses. | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; |
How many restaurants' owners are in California? | restaurants' owners in California refer to owner_state = 'CA'; | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; |
Among violations on 3rd June, 2014, describe any 5 names, located cities and tax codes of the eateries with high risk category. | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100; | the lowest inspection score refers to MIN(score); | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | zip code 94104 refers to owner_zip = '94104'; |
Among the establishments with a postal code of 94102, how many establishments have a score of 90 or more in 2015? | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100; | restaurants' owners in California refer to owner_state = 'CA'; | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; |
What is the name of the establishment with the highest number of low risk violations in 2014? | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | eateries represent business; highest score in inspection refers to score = 100; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score); | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; |
In 2016, which city has the highest number of establishments with the highest health and safety hazards? | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | zip code 94104 refers to owner_zip = '94104'; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; |
What is the owner's name of the of the business that violates 103156 on June 12, 2014? | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90; | ART's CAFÉ is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk'; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | eateries refer to business_id; | the lowest inspection score refers to MIN(score); |
Among the inspections carried out in 2016, how many of them are routine? | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO'); | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | businesses with a high risk category refer to business_id where risk_category = 'High Risk'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | eateries represent business; highest score in inspection refers to score = 100; |
Among the violations in 2016, how many of them have unscheduled inspections? | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | eateries represent business; highest score in inspection refers to score = 100; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | eateries with tax code AA refer to business_id where tax_code = 'AA'; |
List the tax code and inspection type of the business named "Rue Lepic". | "Rue Lepic" is the name of the business; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; |
How many establishments with the tax code H24 have complaint inspections of 5 or more? | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | the lowest inspection score refers to MIN(score); | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01'; | owner's name of businesses refers to owner_name; | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; |
List the eateries' names and addresses which had reinspection on 2nd February, 2015. | eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); |
In 2013, what are the names of the establishments with contaminated or adulterated food? | establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013'; | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id; | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; | eateries represent business; highest score in inspection refers to score = 100; | eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup'; |
Provide the names, risk categories and descriptions for the eateries with violation type ID of 103111. | eateries refer to business_id; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12'; | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; |
What was the type of inspection Tiramisu Kitchen had on 2014/1/14? | Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14'; | eateries with tax code AA refer to business_id where tax_code = 'AA'; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled'; | eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC'; | eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30'; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | the lowest inspection score refers to MIN(score); | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50; |
List the inspection dates, scores and inspection types for the eateries with tax code AA. | eateries with tax code AA refer to business_id where tax_code = 'AA'; | eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31'; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled'; | eateries refer to business_id; | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100; | establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High'; | establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) ≥ 5; | the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26'; |
List down the eateries' IDs with structural inspection type in February 2016. | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; | restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk'; | establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score); | unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | businesses with a high risk category refer to business_id where risk_category = 'High Risk'; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | eateries represent business; highest score in inspection refers to score = 100; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; |
Mention the violation type ID and description of high risk category for STARBUCKS. | STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk'; | Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk'; | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70; | average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id)); | 1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city; | eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2; | owner's name of businesses refers to owner_name; | eateries represent business; highest score in inspection refers to score = 100; | owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces'; | the lowest inspection score refers to MIN(score); |
Who were the owners of eateries which had highest health hazard by improper cooking time or temperatures? | owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures'; | zip code 94104 refers to owner_zip = '94104'; | the lowest inspection score refers to MIN(score); | businesses with a high risk category refer to business_id where risk_category = 'High Risk'; | owner's name of businesses refers to owner_name; | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | establishment has the same meaning as business; score of 90 or more refers to score ≥ 90; year(date) = 2015; | the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id); | 5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk')); | eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03'; | "Rue Lepic" is the name of the business; |
What is the average number of inspections did risk level 3 taverns have? | 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' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | inspection result refers to results | 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)) | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | total number of establishments with the highest risk level = count(max(risk_level)) | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | license number 1576687 refers to license_no = 1576687 | the highest number of inspections done refers to max(count(employee_id)) |
Please list the full names of all the sanitarians under the supervision of Darlisha Jacobs. | full name refers to first_name, last_name | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | job title refers to title | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% | establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' |
What is the result of the February 24, 2010 inspection involving the employee named "Arnold Holder"? | February 24, 2010 refers to inspection_date = '2010-02-24' | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | the most inspections refers to max(count(employee_id)) | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | 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 |
How many taverns failed in July 2010? | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | critical food safety problems refers to fine = 500; point_id = 3 | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | February 24, 2010 refers to inspection_date = '2010-02-24' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' | tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%' |
What is the average number of inspections carried out in the year 2010 by a sanitarian whose salary is over 70000? | 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)) | inspection description refers to Description; inspector's comment refers to inspector_comment | 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' | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | 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' | the most inspections refers to max(count(employee_id)) | full name refers to first_name, last_name | 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)' | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 |
What is the restaurant's name at "41.9532864854" latitude and "-87.7673790701422" longitude? | 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 | critical food safety problems refers to fine = 500; point_id = 3 | 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' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | 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) | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | name of the establishment refers to dba_name | the highest number of inspections done refers to max(count(employee_id)) | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' |
What is the inspection ID of the inspection with critical point level, $500 fine, and inspector comment "CDI ON 5-17-10"? | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' | total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%' | on 7th August 2010 refers to inspection_date = '2010-08-07' | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' | 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) | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' |
State the inspection pass rate of Pockets Restaurant. | 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' | assumed name refers to dba_name | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | in January 2011 refers to inspection_date like '2011-01%' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' |
What are the inspection results for Xando Coffee & Bar / Cosi Sandwich Bar? | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | 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)) | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | 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' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | the highest number of inspections done refers to max(count(employee_id)) |
Out of all the short form complaint inspections done by David Hodges, how many businesses passed? | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | inspection result refers to results | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07' | total number of establishments with the highest risk level = count(max(risk_level)) | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 |
How many inspections with critical food safety problems are under inspection point id 3? | critical food safety problems refers to fine = 500; point_id = 3 | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' |
Calculate the total amount of fine under the food equipment and utensil category. | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | on 7th August 2010 refers to inspection_date = '2010-08-07' | 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 | 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)) | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | establishment name refers to dba_name | no fine refers to fine = 0 | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | 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' |
Where in Chicago does the restaurant named "Old Timers Rest & Lounge" located? | 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 | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | 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 | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; |
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). | 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)' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | on 7th August 2010 refers to inspection_date = '2010-08-07' | February 24, 2010 refers to inspection_date = '2010-02-24' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | assumed name refers to dba_name | name of the establishment refers to dba_name | full name refers to first_name, last_name | the highest number of inspections done refers to max(count(employee_id)) | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%' |
How many establishments that are doing business as Homemade Pizza have a risk level of 2? | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | the highest number of inspections done refers to max(count(employee_id)) | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | 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)) | assumed name refers to dba_name | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' |
How many of the inspections with serious point levels have no fines? | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | assumed name refers to dba_name | no fine refers to fine = 0 | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | 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)' | total number of establishments with the highest risk level = count(max(risk_level)) | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' |
What is the inspection ID where the employee named "David Hodges" is currently employed in the "Kamayan Express" establishment? | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | full name refers to first_name, last_name | the most inspections refers to max(count(employee_id)) | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | in January 2011 refers to inspection_date like '2011-01%' | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' | the highest number of inspections done refers to max(count(employee_id)) | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' |
List down the dba name of restaurants that were inspected due to license. | inspected due to license refers to inspection_type = 'License' | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | assumed name refers to dba_name | 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) | the most inspections refers to max(count(employee_id)) | establishment name refers to dba_name | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | critical food safety problems refers to fine = 500; point_id = 3 | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) |
List the names of employees involved in an inspection with the Display of Inspection Report Summary category. | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | 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' | 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) | establishment name refers to dba_name | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' |
How much is the salary of the employee who has the highest number of inspections done of all time? | the highest number of inspections done refers to max(count(employee_id)) | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | full name refers to first_name, last_name | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | 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' | inspected due to license refers to inspection_type = 'License' | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | 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' | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' |
List down the phone numbers of employees who did Canvass inspection. | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | 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' | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 |
What is the name of the establishment that Joshua Rosa inspected? | name of the establishment refers to dba_name | job title refers to title | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | 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' | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07' | 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)' | 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' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' |
Calculate the percentage of inspections with the fine for a minor food safety problem. | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | 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)) | name of the establishment refers to dba_name | establishment name refers to dba_name | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | 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 | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' |
List the full names of the employees who were responsible for inspecting Taqueria La Paz. | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | no fine refers to fine = 0 | supervisor refers to title = 'Supervisor' | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | total number of establishments with the highest risk level = count(max(risk_level)) | 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) | the most inspections refers to max(count(employee_id)) | 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)) | name of the establishment refers to dba_name | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' |
Among the establishments that failed the inspection in February 2010, list the names of the employees with a salary greater than 70% of the average salary of all employees. | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | total number of establishments with the highest risk level = count(max(risk_level)) | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | supervisor refers to title = 'Supervisor' |
Provide the inspection ID of the establishment named "PIZZA RUSTICA, INC." | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | 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 | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | inspection result refers to results | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | 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)) | 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 |
Show the phone number of the sanitarian who was responsible for inspection no.634597. | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | 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' | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | 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)) | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | license number 1576687 refers to license_no = 1576687 | 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)' |
What is the facility type of the establishment named "Kinetic Playground"? | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | assumed name refers to dba_name | 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 | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | 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' | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | no fine refers to fine = 0 | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; |
How many inspections were done in January 2011? | in January 2011 refers to inspection_date like '2011-01%' | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | job title refers to title | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | no fine refers to fine = 0 | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | assumed name refers to dba_name | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 |
Compare the number of inspections under toxic items and no-smoking regulations. | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | no fine refers to fine = 0 | 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' | 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 | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' |
What is the inspection result for inspection done by Thomas Langley? | inspection result refers to results | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | the most inspections refers to max(count(employee_id)) | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | on 7th August 2010 refers to inspection_date = '2010-08-07' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | 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 | 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' |
What is the average number of inspections done by the top 5 employees with the highest salary? List the names of the said employees. | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | inspected due to license refers to inspection_type = 'License' | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | 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' | critical food safety problems refers to fine = 500; point_id = 3 | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% |
Please list the location coordinates of all the facilities that had an inspection on 2010/5/11. | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | 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' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | critical food safety problems refers to fine = 500; point_id = 3 | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | inspection result refers to results | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' |
What is the job title of employee who did inspection ID 52269? | job title refers to title | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | full name refers to first_name, last_name | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | name of the establishment refers to dba_name | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | 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)' | inspection description refers to Description; inspector's comment refers to inspector_comment |
Among the employees that receive a salary between $75000 to $85000, what is the difference between the number of employees which undergone an inspection that fined 100 and 500? | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | 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' | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | job title refers to title | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | license number 1576687 refers to license_no = 1576687 | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' |
How many employees have salary greater than 70000 but fail the inspection? | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | 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)' | inspection result refers to results | total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%' | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | 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' | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | inspection description refers to Description; inspector's comment refers to inspector_comment |
How many inspections done in 2010 had serious food safety issue? | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | critical food safety problems refers to fine = 500; point_id = 3 | 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' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | assumed name refers to dba_name | establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05' | 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' | 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) | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' |
Among the list of employees, what is the total number of supervisors? | supervisor refers to title = 'Supervisor' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | February 24, 2010 refers to inspection_date = '2010-02-24' | comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25' |
What is the title of the employee that inspected the establishment with license number 1576687? | license number 1576687 refers to license_no = 1576687 | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | supervisor refers to title = 'Supervisor' | full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id)) | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' |
After Azha Restaurant Inc. passed the inspection on 2010/1/21, when was the follow-up inspection done? | 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 | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | total number of establishments with the highest risk level = count(max(risk_level)) | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | 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)) | type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07' |
State the salary of the employee who did the most inspections. | the most inspections refers to max(count(employee_id)) | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | establishment name refers to dba_name | supervisor refers to title = 'Supervisor' | on 7th August 2010 refers to inspection_date = '2010-08-07' | inspected due to license refers to inspection_type = 'License' | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' |
Who inspected Jean Samocki and what was the result? | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | on 7th August 2010 refers to inspection_date = '2010-08-07' | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | 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 | 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) | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%' | critical food safety problems refers to fine = 500; point_id = 3 |
State the name of dbas with verified quality. | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | inspection result refers to results | the most inspections refers to max(count(employee_id)) | 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' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | 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' | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | 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)) | the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5) |
How many inspections were done under the display of inspection report summary category? | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | name of the establishment refers to dba_name | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05' | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' |
How many sanitarian employees in Chicago are from the zip code 60617? | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | inspected due to license refers to inspection_type = 'License' | total number of establishments with the highest risk level = count(max(risk_level)) | 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 | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | no fine refers to fine = 0 | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | critical food safety problems refers to fine = 500; point_id = 3 | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' |
How many inspections did All Style Buffet Restaurant have? | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | 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 | 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 | name of the establishment refers to dba_name | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 | supervisor refers to title = 'Supervisor' | assumed name refers to dba_name | license number 1576687 refers to license_no = 1576687 | 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) | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%' |
Please list the assumed name of all the facilities inspected by Joshua Rosa. | assumed name refers to dba_name | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | name of the establishment refers to dba_name | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' | type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07' | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | 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 | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 |
How many restaurants with the highest risk level still passed the inspection? | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | full name refers to first_name, last_name | 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)) | supervisor refers to title = 'Supervisor' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | inspected due to license refers to inspection_type = 'License' | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100% | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' |
Please list the assumed name of all the facilities that failed an inspection in 2010. | assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%' | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | 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 | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | 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)) | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail' | name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100 |
Calculate the average inspections per year done by Jessica Anthony from 2010 to 2017. | 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) | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | "food maintenance" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071' | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | inspected due to license refers to inspection_type = 'License' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | 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 |
What is the establishment's name with an inspection category of No Smoking Regulations? | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | inspected due to license refers to inspection_type = 'License' | 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' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | job title refers to title | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | in January 2011 refers to inspection_date like '2011-01%' | critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment "CDI ON 5-17-10" refers to inspector_comment = 'CDI ON 5-17-10' |
What is the full name of the employee that inspected establishments with license 1334073? | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | full name refers to first_name, last_name | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | inspection result refers to results | serious point level refers to point_level = 'Serious'; no fines refers to fine = 0 | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | 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 | total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%' | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; |
How many employees are living in Hoffman Estates, IL? | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | critical food safety problems refers to fine = 500; point_id = 3 | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | under the food equipment and utensil category refers to category = 'Food Equipment and Utensil' | location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11' | in January 2011 refers to inspection_date like '2011-01%' | 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 | the highest number of inspections done refers to max(count(employee_id)) | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | inspection description refers to Description; inspector's comment refers to inspector_comment | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' |
What are the comments of the inspector during the inspection of Taqueria La Fiesta on 1/25/2010? | comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25' | full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073 | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' | inspected due to license refers to inspection_type = 'License' | establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05' | 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' | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%' | 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' | full name refers to first_name, last_name |
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. | 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' | in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL' | license number 1576687 refers to license_no = 1576687 | short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | assumed name refers to dba_name | total number of establishments with the highest risk level = count(max(risk_level)) | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | inspection description refers to Description; inspector's comment refers to inspector_comment | no fine refers to fine = 0 | comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25' |
What is the employee's full name involved in the canvass inspection type on March 09, 2010? | full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09' | license number 1576687 refers to license_no = 1576687 | the most inspections refers to max(count(employee_id)) | on 7th August 2010 refers to inspection_date = '2010-08-07' | 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)) | inspection description refers to Description; inspector's comment refers to inspector_comment | 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' | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | 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 | February 24, 2010 refers to inspection_date = '2010-02-24' | no fine refers to fine = 0 |
How many inspection points with serious point level that have no fine? | serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0 | 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)) | the "Kamayan Express" establishment refers to dba_name = 'KAMAYAN EXPRESS' | 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 | job title refers to title | inspection description refers to Description; inspector's comment refers to inspector_comment | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | the establishment named "Kinetic Playground" refers to dba_name = 'Kinetic Playground' | Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2 | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations' |
How much is the total fine given to Ron of Japan Inc in its inspection done on February 2014? | total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%' | name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions' | license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail' | establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05' | sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617 | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000 | under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations' | assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD ' | establishment name refers to dba_name |
What is the total number of establishments with the highest risk level? | total number of establishments with the highest risk level = count(max(risk_level)) | tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%' | full name refers to first_name, last_name | full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ' | the establishment named "J & J FOOD" refers to dba_name = 'J & J FOOD' | 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) | restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass' | under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary' | 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' | in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3 | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' |
Which employee was responsible for inspection no.48224? Give the full name. | inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name; | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail' | restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint' | February 24, 2010 refers to inspection_date = '2010-02-24' | Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' | the highest number of inspections done refers to max(count(employee_id)) | inspected due to license refers to inspection_type = 'License' | the most inspections refers to max(count(employee_id)) | comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25' |
What type of inspection was done on July 07, 2010, involving the employee named "Lisa Tillman"? | type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07' | "PIZZA RUSTICA, INC." refers to dba_name = 'PIZZA RUSTICA, INC' | phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597' | phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass' | inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272 | failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7) | 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)) | employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI' | the highest number of inspections done refers to max(count(employee_id)) | establishment name refers to dba_name | All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.