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】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    On which streets in the city of San Francisco are there restaurants with a review of 1.7? street refers to street_name; review of 1.7 refers to review = 1.7

    【Evidence】
    street refers to street_name; review of 1.7 refers to review = 1.7

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

SQL: SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.review = 1.7
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Which restaurant on the street Alameda de las Pulgas in the city of Menlo Park is the worst rated? restaurant refers to label; street Alameda de las Pulgas refers to street_name = 'avenida de las pulgas'; the worst rated refers to min(review)

    【Evidence】
    restaurant refers to label; street Alameda de las Pulgas refers to street_name = 'avenida de las pulgas'; the worst rated refers to min(review)

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

SQL: SELECT T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'avenida de las pulgas' AND T2.city = 'menlo park' ORDER BY review LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    On what street in Tuolumne County is Good Heavens restaurant located? street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'

    【Evidence】
    street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'

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

SQL: SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T2.label = 'good heavens' AND T3.county = 'tuolumne county'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Indicate the street numbers where Aux Delices Vietnamese Restaurant are located. street numbers refers to street_num; Aux Delices Vietnamese Restaurant refers to label = 'aux delices vietnamese restaurant'

    【Evidence】
    street numbers refers to street_num; Aux Delices Vietnamese Restaurant refers to label = 'aux delices vietnamese restaurant'

    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.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'aux delices vietnamese restaurant'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Identify all the restaurants in Marin County by their id.

    【Evidence】
    

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

SQL: SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    In which regions are there no pizza restaurants? no pizza restaurants refers to food_type = 'pizza'

    【Evidence】
    no pizza restaurants refers to food_type = 'pizza'

    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.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'pizza' AND T2.region != 'unknown'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Calculate the average rating of reviews for restaurants in Santa Cruz County. average rating = divide(sum(review where county = 'santa cruz county'), count(id_restaurant where county = 'santa cruz county'))

    【Evidence】
    average rating = divide(sum(review where county = 'santa cruz county'), count(id_restaurant where county = 'santa cruz county'))

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

SQL: SELECT AVG(T2.review) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'santa cruz county'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    What percentage of restaurants in Monterey County have Mexican food? Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%

    【Evidence】
    Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%

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

SQL: SELECT CAST(SUM(IIF(T2.food_type = 'mexican', 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'monterey county'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    What percentage of streets named 11th Street are in Alameda County? street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%

    【Evidence】
    street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%

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

SQL: SELECT CAST(SUM(IIF(T1.street_name = '11th st', 1, 0)) AS REAL) * 100 / COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.County = 'alameda county'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Please list all of the restaurants that serve European food. restaurant refers to label; European food refers to food_type = 'european'

    【Evidence】
    restaurant refers to label; European food refers to food_type = 'european'

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

SQL: SELECT label FROM generalinfo WHERE food_type = 'european'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    What cities are located in Northern California? Northern California refers to region = 'northern california'

    【Evidence】
    Northern California refers to region = 'northern california'

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

SQL: SELECT city FROM geographic WHERE region = 'northern california'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    What does the one and only 24-hour diner's name? 24-hour diner refers to food_type = '24 hour diner'; diner name refers to label

    【Evidence】
    24-hour diner refers to food_type = '24 hour diner'; diner name refers to label

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

SQL: SELECT label FROM generalinfo WHERE food_type = '24 hour diner'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Please list any five cities that have an unidentified county and region. unidentified county and region refers to county = 'unknown' AND region = 'unknown'

    【Evidence】
    unidentified county and region refers to county = 'unknown' AND region = 'unknown'

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

SQL: SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    What is the county and region of Davis City?

    【Evidence】
    

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

SQL: SELECT county, region FROM geographic WHERE city = 'Davis'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 restaurant
【Schema】
# Table: generalinfo
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(label:TEXT, Examples: [sparky's diner, kabul afghan cuisine, helmand restaurant]),
(food_type:TEXT, Examples: [24 hour diner, afghani, african]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale]),
(review:REAL, Examples: [2.3, 3.8, 4.0])
]
# Table: geographic
[
(city:TEXT, Primary Key, Examples: [alameda, alamo, albany]),
(county:TEXT, Examples: [alameda county, contra costa county, santa clara county]),
(region:TEXT, Examples: [bay area, napa valley, unknown])
]
# Table: location
[
(id_restaurant:INTEGER, Primary Key, Examples: [1, 2, 3]),
(street_num:INTEGER, Examples: [242, 135, 430]),
(street_name:TEXT, Examples: [church st, el camino real, broadway]),
(city:TEXT, Examples: [san francisco, san carlos, sunnyvale])
]
【Foreign keys】
generalinfo.city=geographic.city
location.city=geographic.city
location.id_restaurant=generalinfo.id_restaurant

    【Question】
    Please list all of the street names in Clayton City.

    【Evidence】
    

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

SQL: SELECT street_name FROM location WHERE city = 'Clayton'