1sf/bird-sql-train-with-schema huggingface dataset:
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the name of the restaurant that is located in El Dorado County, Lake Tahoe region?
Evidence: restaurant name refers to label
SQL: SELECT T2.label FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'lake tahoe' AND T1.county = 'el dorado county'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which county and region does the street E. El Camino Real belong to?
Evidence: street E. El Camino Real refers to street_name = 'E. El Camino Real'
SQL: SELECT DISTINCT T2.county, T2.region FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_name = 'E. El Camino Real'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the name of the least popular Indian restaurant on Shattuck Avenue in Berkeley?
Evidence: restaurant name refers to label; the least popular refers to min(review); Indian restaurant refers to food_type = 'Indian restaurant'; Shattuck Avenue in Berkeley refers to street_name = 'shattuck ave' and city = 'berkeley'
SQL: SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'berkeley' AND T2.street_name = 'shattuck ave' AND T1.food_type = 'Indian restaurant' ORDER BY T1.review LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the percentage of restaurants in the Bay Area region that scored over 4 for the review rating?
Evidence: scored over 4 refers to review > 4; percentage = divide(count(id_restaurant where region = 'bay area' and review > 4), count(id_restaurant where region = 'Bay Area')) * 100%
SQL: SELECT CAST(SUM(IIF(T2.review > 4, 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 RIGHT JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List every city in San Mateo County.
SQL: SELECT city FROM geographic WHERE county = 'san mateo county'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many restaurants have more than 4 star reviews?
Evidence: more than 4 star review refers to review > 4
SQL: SELECT COUNT(id_restaurant) AS cnt FROM generalinfo WHERE review > 4
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which street has the most restaurants?
Evidence: street refers to street_name; the most restaurants refers to max(count(street_name))
SQL: SELECT street_name FROM location GROUP BY street_name ORDER BY COUNT(street_name) DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which chicken restaurant has the highest review?
Evidence: chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)
SQL: SELECT label FROM generalinfo WHERE food_type = 'chicken' ORDER BY review DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which county is El Cerrito from?
Evidence: El Cerrito refers to city = 'el cerrito'
SQL: SELECT county FROM geographic WHERE city = 'el cerrito'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many restaurants are on Irving Street?
Evidence: Irving Street refers to street_name = 'irving'
SQL: SELECT COUNT(id_restaurant) FROM location WHERE street_name = 'irving'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Provide a list of restaurants from Marin county.
Evidence: restaurant refers to label
SQL: SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the address of the Peking Duck restaurant?
Evidence: address refers to street_num, street_name; Peking Duck restaurant refers to label = 'peking duck restaurant'
SQL: SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.label = 'peking duck restaurant'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List all the streets with more than 10 restaurants in Alameda county.
Evidence: street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10
SQL: SELECT T2.street_name FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.county = 'alameda county' GROUP BY T2.street_name HAVING COUNT(T2.id_restaurant) > 10
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What are the regions with Greek restaurants?
Evidence: Greek restaurant refers to food_type = 'greek'
SQL: SELECT DISTINCT T1.region FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'greek'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List all of the restaurant addresses from an unknown region.
Evidence: restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'
SQL: SELECT T2.street_name FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'unknown'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the review of the restaurant at 8440 Murray Ave?
Evidence: 8440 Murray Ave refers to street_num = 8440 and street_name = 'murray ave'
SQL: SELECT T2.review FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'murray ave' AND T1.street_num = 8440
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What type of restaurant is most common in Monterey county?
Evidence: type refers to food_type; most common refers to max(count(food_type))
SQL: SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'Monterey' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which street in San Francisco has the most burger restaurants?
Evidence: street refers to street_name; San Francisco refers to city = 'san francisco'; burger restaurant refers to food_type = 'burgers'; the most burger restaurants refers to max(count(street_name where food_type = 'burgers' and city = 'san francisco'))
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.food_type = 'burgers' GROUP BY T2.street_name ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the region of 1149 El Camino Real?
Evidence: 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'
SQL: SELECT T2.region FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_num = 1149 AND T1.street_name = 'el camino real'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the county of the Sankee restaurant?
Evidence: Sankee restaurant refers to label = 'sankee'
SQL: SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'sankee'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many streets with restaurants are there in the Northern California region?
SQL: SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'northern california'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List all of the restaurants on Park St.
Evidence: restaurant refers to label; Park St refers to street_name = 'park st'
SQL: SELECT T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'park st'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What percentage of restaurants are from the Bay Area?
Evidence: Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%
SQL: SELECT CAST(SUM(IIF(T1.region = 'bay area', 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List all the average reviews of Chinese restaurants for each county from highest to lowest.
Evidence: Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))
SQL: SELECT AVG(T1.review) FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'chinese' GROUP BY T1.id_restaurant ORDER BY AVG(T1.review) DESC
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List street names in San Francisco city.
SQL: SELECT street_name FROM location WHERE city = 'San Francisco'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List restaurant ids located in Danville city.
SQL: SELECT id_restaurant FROM location WHERE city = 'Danville'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many cities are located in the Bay Area?
Evidence: the Bay Area refers to region = 'bay area'
SQL: SELECT COUNT(city) FROM geographic WHERE region = 'bay area'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many labels of the restaurant have an unknown country?
Evidence: unknown county refers to county = 'unknown'
SQL: SELECT COUNT(T1.label) FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'unknown'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Please indicate the street names of restaurants with food type is American.
SQL: SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'American'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Please indicate which labels have the city located in Santa Cruz.
Evidence: Santa Cruz refers to county = 'Santa Cruz county'
SQL: SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'Santa Cruz county'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Give the review of the restaurant at 430, Broadway.
Evidence: 430 Broadway refers to street_num = 430 and street_name = 'Broadway'
SQL: SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'Broadway' AND T2.street_num = 430
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Indicate the address of the restaurant with the most popular reviews.
Evidence: address refers to street_num, street_name; the most popular review refers to max(review)
SQL: SELECT T2.street_num, T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant ORDER BY T1.review DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Which country has the most restaurants with Italian food?
Evidence: Italian food refers to food_type = 'Italian'
SQL: SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'Italian' GROUP BY T2.county ORDER BY COUNT(T1.id_restaurant) DESC LIMIT 1
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Find the percentage of restaurant in Napa Valley.
Evidence: Napa Valley refers to region = 'Napa Valley'; percentage = divide(count(id_restaurant where region = 'Napa Valley'), count(id_restaurant)) * 100%
SQL: SELECT CAST(SUM(IIF(region = 'Napa Valley', 1, 0)) AS REAL) * 100 / COUNT(region) FROM geographic
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: How many of the cities are in a Bay Area?
Evidence: Bay Area refers to region = 'bay area'
SQL: SELECT COUNT(city) FROM geographic WHERE region = 'bay area'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List down the cities with unknown country.
Evidence: unknown county refers to county = 'unknown'
SQL: SELECT city FROM geographic WHERE county = 'unknown'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the city located in Bay Area of Santa Clara?
Evidence: Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'
SQL: SELECT city FROM geographic WHERE region = 'bay area' AND county = 'santa clara county'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: List down the restaurant ID of restaurants located in Sunnyvale.
Evidence: Sunnyvale refers to city = 'sunnyvale'
SQL: SELECT id_restaurant FROM location WHERE city = 'sunnyvale'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Among the restaurants on street number below 1000, how many of them are in Railroad St.?
Evidence: street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'
SQL: SELECT COUNT(city) FROM location WHERE street_name = 'railroad' AND street_num < 1000
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: What is the name of the 24 hour diner at San Francisco?
Evidence: name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'
SQL: SELECT label FROM generalinfo WHERE food_type = '24 hour diner' AND city = 'san francisco'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Give the review of the restaurant located in Ocean St., Santa Cruz.
Evidence: Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'
SQL: SELECT T2.review FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'santa cruz' AND T1.street_name = 'ocean st'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Give the street number of a bar in Oakland with a 2.7 review.
Evidence: street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7
SQL: SELECT T2.street_num FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.review = 2.7 AND T2.city = 'oakland' AND T1.food_type = 'bar'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Among the bakeries, what is total number of bakery located at University Avenue, Palo Alto?
Evidence: bakery refers to food_type = 'bakery'; University Avenue refers to street_name = 'university ave.'; Palo Alto refers to city = 'palo alto'
SQL: SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.food_type = 'bakery' AND T2.city = 'palo alto' AND T1.street_name = 'university ave.'
Database: restaurant
Tables: geographic, generalinfo, location
Columns (table index, column name): -1, *, 0, city, 0, county, 0, region, 1, id_restaurant, 1, label, 1, food_type, 1, city, 1, review, 2, id_restaurant, 2, street_num, 2, street_name, 2, city
Question: Among the listed winery, what is the street number of the winery named "Tulocay Winery"?
Evidence: winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery'
SQL: SELECT T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'Tulocay winery' AND T2.food_type = 'winery'