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】
    What is the average scores of Tiramisu Kitchen in all inspections? avg(score);

    【Evidence】
    avg(score);

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

SQL: SELECT AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Tiramisu Kitchen'
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】
    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;

    【Evidence】
    the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers 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 business_id FROM inspections GROUP BY business_id ORDER BY COUNT(business_id) 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】
    Tell the Id number of the business with the most number of violations. Id number for that business refers to business_id; the most number of violations refers to MAX(COUNT(business_id));

    【Evidence】
    Id number for that business refers to business_id; the most number of violations refers to MAX(COUNT(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 business_id FROM violations GROUP BY business_id ORDER BY COUNT(business_id) 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】
    Give the name of the business which met all the required standards during the unscheduled routine inspection on 2016/9/28. met all the required standards refers to score = 100; unscheduled routine inspection on 2016/9/28 refers to type = 'Routine - Unscheduled' where date = '2016-09-28';

    【Evidence】
    met all the required standards refers to score = 100; unscheduled routine inspection on 2016/9/28 refers to type = 'Routine - Unscheduled' where date = '2016-09-28';

    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 FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100 AND T1.`date` = '2016-09-28' AND T1.type = 'Routine - Unscheduled'
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】
    Which business had the most number of high risk violations? Give the name of the business. the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';

    【Evidence】
    the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';

    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 FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' GROUP BY T2.name ORDER BY COUNT(T2.name) 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】
    How many kinds of violations did "Stacks Restaurant" have on 2016/10/4? "Stacks Restaurant" is the name of the business; date = '2016-10-04';

    【Evidence】
    "Stacks Restaurant" is the name of the business; date = '2016-10-04';

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

SQL: SELECT COUNT(DISTINCT T1.violation_type_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Stacks Restaurant' AND T1.`date` = '2016-10-04'
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】
    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';

    【Evidence】
    "Chez Fayala, Inc." is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';

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

SQL: SELECT T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Chez Fayala, Inc.' AND T1.`date` = '2016-07-01' AND T1.risk_category = 'Moderate 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】
    Which business had the lowest score for the unscheduled routine inspection on 2016/9/26? Give the name of the business. the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';

    【Evidence】
    the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';

    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 FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE score = ( SELECT MIN(score) FROM inspections WHERE `date` = '2016-09-26' AND type = 'Routine - Unscheduled' ) AND T1.`date` = '2016-09-26' AND T1.type = 'Routine - Unscheduled'
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 name of the business which had the most number of inspections because of complaint. the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);

    【Evidence】
    the most number of inspections because of complaint refers to type = 'Complaint' where MAX(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 FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.type = 'Complaint' GROUP BY T2.name ORDER BY COUNT(T1.business_id) 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】
    How many unscheduled routine inspections did "Soma Restaurant And Bar" have? "Soma Restaurant And Bar" is the name of the business; unscheduled routine inspections refer to type = 'Routine - Unscheduled';

    【Evidence】
    "Soma Restaurant And Bar" is the name of the business; unscheduled routine inspections refer to type = 'Routine - Unscheduled';

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

SQL: SELECT COUNT(T1.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Soma Restaurant And Bar' AND T1.type = 'Routine - Unscheduled'