QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T1.violation_type_id, T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'STARBUCKS' AND T1.risk_category = 'High Risk'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    eateries with tax code AA refer to business_id where tax_code = 'AA';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.`date`, T1.score, T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.tax_code = 'AA'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    Provide eateries' IDs, names and addresses which were inspected on 30th July, 2016. eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';

    【Evidence】
    eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T2.business_id, T2.name, T2.address FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.date = '2016-07-30'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.`date`, T1.risk_category, T1.description, T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_name = 'Jade Chocolates LLC'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    Provide the names, risk categories and descriptions for the eateries with violation type ID of 103111. eateries refer to business_id;

    【Evidence】
    eateries refer to business_id;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.name, T1.risk_category, T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.violation_type_id = '103111'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T2.name, T2.city, T2.tax_code FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.`date` = '2014-06-03' LIMIT 5
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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);

    【Evidence】
    El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'El Aji Peruvian Restaurant' ORDER BY T1.score DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    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';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.description = 'Improper cooking time or temperatures'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    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';

    【Evidence】
    eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.name, T2.address FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2015-02-02' AND T1.type = 'Reinspection/Followup'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection
【Schema】
# Table: inspections
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(score:INTEGER, Examples: [92, 94, 82]),
(date:DATE, Examples: [2014-01-14]),
(type:TEXT, Examples: [Routine - Unscheduled])
]
# Table: violations
[
(business_id:INTEGER, Examples: [10, 24, 31]),
(date:DATE, Examples: [2014-07-29]),
(violation_type_id:TEXT, Examples: [103129, 103144, 103119]),
(risk_category:TEXT, Examples: [Moderate Risk, Low Risk, High Risk]),
(description:TEXT, Examples: [Insufficient hot water or running water])
]
# Table: businesses
[
(business_id:INTEGER, Primary Key, Examples: [10, 24, 31]),
(name:TEXT, Examples: [Tiramisu Kitchen]),
(address:TEXT, Examples: [033 Belden Pl]),
(city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(postal_code:TEXT, Examples: [94104, 94133, 94110]),
(latitude:REAL, Examples: [37.7911, 37.7929, 37.8072]),
(longitude:REAL, Examples: [-122.404, -122.403, -122.419]),
(phone_number:INTEGER, Examples: [14155345060, 14155823535, 14155344645]),
(tax_code:TEXT, Examples: [H24, H01, H25]),
(business_certificate:INTEGER, Examples: [779059, 352312, 346882]),
(application_date:DATE, Examples: [2001-10-10]),
(owner_name:TEXT, Examples: [Tiramisu LLC]),
(owner_address:TEXT, Examples: [33 Belden St]),
(owner_city:TEXT, Examples: [San Francisco, S.F., SAN FRANCISCO]),
(owner_state:TEXT, Examples: [CA, DC, WA]),
(owner_zip:TEXT, Examples: [94104, 94133, 94114])
]
【Foreign keys】
inspections.business_id=businesses.business_id
violations.business_id=businesses.business_id

    【Question】
    List the names and business certificates of the eateries which got inspection score under 50. eateries which got inspection score under 50 refer to business_id where score < 50;

    【Evidence】
    eateries which got inspection score under 50 refer to business_id where score < 50;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.name, T2.business_id FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score < 50