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 counties are not in the Bay Area Region?
Evidence: not in the Bay Area region refers to region ! = 'bay area'
SQL: SELECT DISTINCT county 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 all cities in the Northern California Region.
SQL: SELECT city FROM geographic WHERE 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 by its ID number all restaurants on 11th Street in Oakland.
Evidence: 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant


SQL: SELECT id_restaurant FROM location WHERE city = 'oakland' AND street_name = '11th street'
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 can we find at number 871 on its street?
Evidence: number 871 on its street refers to street_num = 871
SQL: SELECT COUNT(id_restaurant) FROM location WHERE street_num = 871
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: At what numbers on 9th Avenue of San Francisco there are restaurants?
Evidence: 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'
SQL: SELECT id_restaurant FROM location WHERE City = 'san francisco' AND street_name = '9th avenue'
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 food is there in the restaurants on Adeline Street in Berkeley city?
Evidence: Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type


SQL: SELECT T1.food_type FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'adeline st' AND T2.city = 'berkeley'
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: In which regions are there no African food restaurants?
Evidence: no African food restaurants refers to food_type <> 'african'
SQL: SELECT DISTINCT T2.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type != 'african'
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: In which counties are there A&W Root Beer Restaurants?
Evidence: A&W Root Beer Restaurant refers to label = 'a & w root beer'
SQL: SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'a & w root beer'
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 street and number of the Adelitas Taqueria Restaurants.
Evidence: street refers to street_name; number refers to street_num; Adelitas Taqueria Restaurant refers to label = 'adelitas taqueria'
SQL: SELECT T1.street_name, T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'adelitas taqueria'
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 food is served at the restaurant located at 3140, Alpine Road at San Mateo County?
Evidence: 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type
SQL: SELECT T2.food_type 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 T3.County = 'san mateo county' AND T1.street_name = 'alpine rd' AND T1.street_num = 3140
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: In which streets of the city of San Francisco are there restaurants that serve seafood?
Evidence: street refers to street_name; seafood refers to food_type = 'seafood'
SQL: SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T2.food_type = 'seafood' AND street_name IS NOT NULL
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 counties where there is no Bakers Square Restaurant & Pie Shop.
Evidence: no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'
SQL: SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label != 'bakers square restaurant & pie shop'
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: In how many counties is there a street called Appian Way?
Evidence: a street called Appian Way refers to street_name = 'appian way'
SQL: SELECT COUNT(DISTINCT T2.county) FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_name = 'appian way'
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 rating of each restaurant reviews on Atlantic Ave?
Evidence: Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review
SQL: SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'atlantic 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: Identify all restaurants in Contra Costa County by id.
SQL: SELECT T1.id_restaurant FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'contra costa 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: Identify all the restaurants in Yolo County by their label.
SQL: SELECT T1.id_restaurant, T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'yolo 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 restaurant on Drive Street in San Rafael doesn't serve American food?
Evidence: Drive Street refers to street_name = 'drive'; San Rafael refers to city = 'san rafael'; American food refers to food_type <> 'american'
SQL: SELECT T1.label FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'drive' AND T1.food_type != 'american' AND T2.city = 'san rafael'
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: On which streets in the city of San Francisco are there restaurants with a review of 1.7?
Evidence: street refers to street_name; review of 1.7 refers to review = 1.7
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
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 restaurant on the street Alameda de las Pulgas in the city of Menlo Park is the worst rated?
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)
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
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: On what street in Tuolumne County is Good Heavens restaurant located?
Evidence: street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'
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'
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 street numbers where Aux Delices Vietnamese Restaurant are located.
Evidence: street numbers refers to street_num; Aux Delices Vietnamese Restaurant refers to label = 'aux delices vietnamese restaurant'
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'
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: Identify all the restaurants in Marin County by their id.
SQL: SELECT T1.id_restaurant 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: In which regions are there no pizza restaurants?
Evidence: no pizza restaurants refers to food_type = 'pizza'
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'
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: Calculate the average rating of reviews for restaurants in Santa Cruz County.
Evidence: average rating = divide(sum(review where county = 'santa cruz county'), count(id_restaurant where county = 'santa cruz county'))
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'
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 in Monterey County have Mexican food?
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%
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'
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 streets named 11th Street are in Alameda County?
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%
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'
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 list all of the restaurants that serve European food.
Evidence: restaurant refers to label; European food refers to food_type = 'european'
SQL: SELECT label FROM generalinfo WHERE food_type = 'european'
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 cities are located in Northern California?
Evidence: Northern California refers to region = 'northern california'
SQL: SELECT city FROM geographic WHERE 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: What does the one and only 24-hour diner's name?
Evidence: 24-hour diner refers to food_type = '24 hour diner'; diner name refers to label
SQL: SELECT label FROM generalinfo WHERE food_type = '24 hour diner'
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 list any five cities that have an unidentified county and region.
Evidence: unidentified county and region refers to county = 'unknown' AND region = 'unknown'
SQL: SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5
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 and region of Davis City?
SQL: SELECT county, region FROM geographic WHERE city = 'Davis'
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 list all of the street names in Clayton City.
SQL: SELECT street_name FROM location WHERE city = 'Clayton'
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 most popular restaurants in San Francisco among diners?
Evidence: the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'
SQL: SELECT id_restaurant, label FROM generalinfo WHERE city = 'San Francisco' AND review = ( SELECT MAX(review) FROM generalinfo 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: How many American food restaurants are unpopular in Carmel?
Evidence: American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'
SQL: SELECT COUNT(id_restaurant) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' AND review = ( SELECT MIN(review) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' )
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 that serve American food in Dublin city?
Evidence: American food refers to food_type = 'american food'; percentage = divide(count(id_restaurant), count(id_restaurant where food_type = 'american food')) where city = 'dublin' * 100%
SQL: SELECT CAST(SUM(IIF(food_type = 'american food', 1, 0)) AS REAL) * 100 / COUNT(id_restaurant) FROM generalinfo WHERE city = 'dublin'
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 full address of Albert's Café?
Evidence: full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café'
SQL: SELECT T2.street_num, T2.street_name, T1.city FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.label = 'Albert''s Café'
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 restaurants that are located at "19th St. Oakland"?
Evidence: restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland'
SQL: SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'Oakland' AND T2.street_name = '19th 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 kind of restaurants can be found at "106 E 25th Ave"?
Evidence: kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave'
SQL: SELECT T1.food_type FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_num = 106 AND T2.street_name = 'e 25th 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: Please name any three restaurants that have an unidentified region.
Evidence: restaurant name refers to label; unidentified region refers to region = 'unknown'
SQL: SELECT T2.label 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 T3.region = 'unknown' LIMIT 3
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 Chinese restaurant that can be found at 104 San Tomas Aquino Road, Campbell?
Evidence: restaurant name refers to label; Chinese restaurant refers to food_type = 'chinese'; 104 San Tomas Aquino Road Campbell refers to street_num = 104 AND street_name = 'san tomas aquino road' AND city = 'campbell'
SQL: SELECT T1.label FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_num = 104 AND T1.city = 'campbell' AND T2.street_name = 'san tomas aquino road'
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 Thai restaurants can be found in San Pablo Ave, Albany?
Evidence: Thai restaurant refers to food_type = 'thai'; San Pablo Ave Albany refers to street_name = 'san pablo ave' AND T1.city = 'albany'
SQL: SELECT COUNT(T1.id_restaurant) FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.food_type = 'thai' AND T1.city = 'albany' AND T2.street_name = 'san pablo 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: What is the county and region of Plearn-Thai Cuisine restaurant?
Evidence: Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'
SQL: SELECT T1.county, T1.region, T2.label FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.label = 'plearn-thai cuisine'