id int64 0 9.43k | db_id stringclasses 69
values | schema stringclasses 69
values | question stringlengths 24 325 | output stringlengths 23 804 | evidence stringlengths 0 673 | filtered_schema listlengths 0 16 |
|---|---|---|---|---|---|---|
1,700 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please list all of the restaurants that serve European food. | SELECT label FROM generalinfo WHERE food_type = 'european' | restaurant refers to label; European food refers to food_type = 'european' | [
"generalinfo.food_type",
"generalinfo.label"
] |
1,701 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What cities are located in Northern California? | SELECT city FROM geographic WHERE region = 'northern california' | Northern California refers to region = 'northern california' | [
"geographic.city",
"geographic.region"
] |
1,702 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What does the one and only 24-hour diner's name? | SELECT label FROM generalinfo WHERE food_type = '24 hour diner' | 24-hour diner refers to food_type = '24 hour diner'; diner name refers to label | [
"generalinfo.food_type",
"generalinfo.label"
] |
1,703 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please list any five cities that have an unidentified county and region. | SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5 | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | [
"geographic.city",
"geographic.county",
"geographic.region"
] |
1,704 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the county and region of Davis City? | SELECT county, region FROM geographic WHERE city = 'Davis' | [
"geographic.city",
"geographic.county",
"geographic.region"
] | |
1,705 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please list all of the street names in Clayton City. | SELECT street_name FROM location WHERE city = 'Clayton' | [
"location.city",
"location.street_name"
] | |
1,706 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What are the most popular restaurants in San Francisco among diners? | SELECT id_restaurant, label FROM generalinfo WHERE city = 'San Francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE city = 'San Francisco' ) | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"generalinfo.review"
] |
1,707 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many American food restaurants are unpopular in Carmel? | 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' ) | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review"
] |
1,708 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the percentage of restaurants that serve American food in Dublin city? | SELECT CAST(SUM(IIF(food_type = 'american food', 1, 0)) AS REAL) * 100 / COUNT(id_restaurant) FROM generalinfo WHERE city = 'dublin' | 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% | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant"
] |
1,709 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the full address of Albert's Café? | 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é' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,710 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What are the restaurants that are located at "19th St. Oakland"? | 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' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,711 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What kind of restaurants can be found at "106 E 25th Ave"? | 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' | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,712 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please name any three restaurants that have an unidentified region. | 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 | restaurant name refers to label; unidentified region refers to region = 'unknown' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"geographic.city",
"geographic.region",
"location.id_restaurant"
] |
1,713 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the name of the Chinese restaurant that can be found at 104 San Tomas Aquino Road, Campbell? | 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' | 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' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,714 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many Thai restaurants can be found in San Pablo Ave, Albany? | 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' | Thai restaurant refers to food_type = 'thai'; San Pablo Ave Albany refers to street_name = 'san pablo ave' AND T1.city = 'albany' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,715 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the county and region of Plearn-Thai Cuisine restaurant? | 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' | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county",
"geographic.region"
] |
1,716 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the name of the restaurant that is located in El Dorado County, Lake Tahoe region? | 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' | restaurant name refers to label | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county",
"geographic.region"
] |
1,717 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which county and region does the street E. El Camino Real belong to? | 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' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | [
"geographic.city",
"geographic.county",
"geographic.region",
"location.city",
"location.street_name"
] |
1,718 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the name of the least popular Indian restaurant on Shattuck Avenue in Berkeley? | 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 | 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' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_name"
] |
1,719 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the percentage of restaurants in the Bay Area region that scored over 4 for the review rating? | 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' | 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% | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.review",
"geographic.city",
"geographic.region"
] |
1,720 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List every city in San Mateo County. | SELECT city FROM geographic WHERE county = 'san mateo county' | [
"geographic.city",
"geographic.county"
] | |
1,721 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many restaurants have more than 4 star reviews? | SELECT COUNT(id_restaurant) AS cnt FROM generalinfo WHERE review > 4 | more than 4 star review refers to review > 4 | [
"generalinfo.id_restaurant",
"generalinfo.review"
] |
1,722 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which street has the most restaurants? | SELECT street_name FROM location GROUP BY street_name ORDER BY COUNT(street_name) DESC LIMIT 1 | street refers to street_name; the most restaurants refers to max(count(street_name)) | [
"location.street_name"
] |
1,723 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which chicken restaurant has the highest review? | SELECT label FROM generalinfo WHERE food_type = 'chicken' ORDER BY review DESC LIMIT 1 | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | [
"generalinfo.food_type",
"generalinfo.label",
"generalinfo.review"
] |
1,724 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which county is El Cerrito from? | SELECT county FROM geographic WHERE city = 'el cerrito' | El Cerrito refers to city = 'el cerrito' | [
"geographic.city",
"geographic.county"
] |
1,725 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many restaurants are on Irving Street? | SELECT COUNT(id_restaurant) FROM location WHERE street_name = 'irving' | Irving Street refers to street_name = 'irving' | [
"location.id_restaurant",
"location.street_name"
] |
1,726 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Provide a list of restaurants from Marin county. | SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county' | restaurant refers to label | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county"
] |
1,727 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the address of the Peking Duck restaurant? | 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' | address refers to street_num, street_name; Peking Duck restaurant refers to label = 'peking duck restaurant' | [
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_name"
] |
1,728 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List all the streets with more than 10 restaurants in Alameda county. | 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 | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | [
"geographic.city",
"geographic.county",
"location.city",
"location.id_restaurant",
"location.street_name"
] |
1,729 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What are the regions with Greek restaurants? | SELECT DISTINCT T1.region FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'greek' | Greek restaurant refers to food_type = 'greek' | [
"generalinfo.city",
"generalinfo.food_type",
"geographic.city",
"geographic.region"
] |
1,730 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List all of the restaurant addresses from an unknown region. | SELECT T2.street_name FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'unknown' | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | [
"geographic.city",
"geographic.region",
"location.city",
"location.street_name"
] |
1,731 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the review of the restaurant at 8440 Murray Ave? | 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 | 8440 Murray Ave refers to street_num = 8440 and street_name = 'murray ave' | [
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,732 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What type of restaurant is most common in Monterey county? | 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 | type refers to food_type; most common refers to max(count(food_type)) | [
"generalinfo.city",
"generalinfo.food_type",
"geographic.city",
"geographic.county"
] |
1,733 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which street in San Francisco has the most burger restaurants? | 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 | 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')) | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,734 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the region of 1149 El Camino Real? | 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' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | [
"geographic.city",
"geographic.region",
"location.city",
"location.street_name",
"location.street_num"
] |
1,735 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the county of the Sankee restaurant? | SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'sankee' | Sankee restaurant refers to label = 'sankee' | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county"
] |
1,736 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many streets with restaurants are there in the Northern California region? | SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'northern california' | [
"geographic.city",
"geographic.region",
"location.city"
] | |
1,737 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List all of the restaurants on Park St. | 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' | restaurant refers to label; Park St refers to street_name = 'park st' | [
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_name"
] |
1,738 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What percentage of restaurants are from the Bay Area? | 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 | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | [
"geographic.city",
"geographic.region",
"location.city",
"location.id_restaurant"
] |
1,739 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List all the average reviews of Chinese restaurants for each county from highest to lowest. | 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 | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review",
"geographic.city"
] |
1,740 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List street names in San Francisco city. | SELECT street_name FROM location WHERE city = 'San Francisco' | [
"location.city",
"location.street_name"
] | |
1,741 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List restaurant ids located in Danville city. | SELECT id_restaurant FROM location WHERE city = 'Danville' | [
"location.city",
"location.id_restaurant"
] | |
1,742 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many cities are located in the Bay Area? | SELECT COUNT(city) FROM geographic WHERE region = 'bay area' | the Bay Area refers to region = 'bay area' | [
"geographic.city",
"geographic.region"
] |
1,743 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many labels of the restaurant have an unknown country? | SELECT COUNT(T1.label) FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'unknown' | unknown county refers to county = 'unknown' | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county"
] |
1,744 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please indicate the street names of restaurants with food type is American. | SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'American' | [
"generalinfo.city",
"generalinfo.food_type",
"location.city",
"location.street_name"
] | |
1,745 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Please indicate which labels have the city located in Santa Cruz. | SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'Santa Cruz county' | Santa Cruz refers to county = 'Santa Cruz county' | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county"
] |
1,746 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Give the review of the restaurant at 430, Broadway. | 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 | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | [
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,747 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Indicate the address of the restaurant with the most popular reviews. | 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 | address refers to street_num, street_name; the most popular review refers to max(review) | [
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,748 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which country has the most restaurants with Italian food? | 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 | Italian food refers to food_type = 'Italian' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"geographic.city",
"geographic.county"
] |
1,749 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Find the percentage of restaurant in Napa Valley. | SELECT CAST(SUM(IIF(region = 'Napa Valley', 1, 0)) AS REAL) * 100 / COUNT(region) FROM geographic | Napa Valley refers to region = 'Napa Valley'; percentage = divide(count(id_restaurant where region = 'Napa Valley'), count(id_restaurant)) * 100% | [
"geographic.region"
] |
1,750 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many of the cities are in a Bay Area? | SELECT COUNT(city) FROM geographic WHERE region = 'bay area' | Bay Area refers to region = 'bay area' | [
"geographic.city",
"geographic.region"
] |
1,751 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List down the cities with unknown country. | SELECT city FROM geographic WHERE county = 'unknown' | unknown county refers to county = 'unknown' | [
"geographic.city",
"geographic.county"
] |
1,752 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the city located in Bay Area of Santa Clara? | SELECT city FROM geographic WHERE region = 'bay area' AND county = 'santa clara county' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | [
"geographic.city",
"geographic.county",
"geographic.region"
] |
1,753 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List down the restaurant ID of restaurants located in Sunnyvale. | SELECT id_restaurant FROM location WHERE city = 'sunnyvale' | Sunnyvale refers to city = 'sunnyvale' | [
"location.city",
"location.id_restaurant"
] |
1,754 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among the restaurants on street number below 1000, how many of them are in Railroad St.? | SELECT COUNT(city) FROM location WHERE street_name = 'railroad' AND street_num < 1000 | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | [
"location.city",
"location.street_name",
"location.street_num"
] |
1,755 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the name of the 24 hour diner at San Francisco? | SELECT label FROM generalinfo WHERE food_type = '24 hour diner' AND city = 'san francisco' | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.label"
] |
1,756 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Give the review of the restaurant located in Ocean St., Santa Cruz. | 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' | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_name"
] |
1,757 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Give the street number of a bar in Oakland with a 2.7 review. | 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' | 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 | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review",
"location.city",
"location.id_restaurant",
"location.street_num"
] |
1,758 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among the bakeries, what is total number of bakery located at University Avenue, Palo Alto? | 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.' | bakery refers to food_type = 'bakery'; University Avenue refers to street_name = 'university ave.'; Palo Alto refers to city = 'palo alto' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,759 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among the listed winery, what is the street number of the winery named "Tulocay Winery"? | 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' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_num"
] |
1,760 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List the review and label of the restaurants in Mission Blvd., Hayward. | SELECT T2.review, T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'hayward' AND T1.street_name = 'mission blvd' | Mission Blvd. refers to street_name = 'mission blvd'; Hayward refers to city = 'hayward' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"generalinfo.review",
"location.id_restaurant",
"location.street_name"
] |
1,761 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among all indian restaurants in Castro St., Mountainview, how many of them is about cookhouse in their label? | SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'castro st' AND T1.city = 'mountain view' AND T2.food_type = 'indian' AND T2.label LIKE '%cookhouse%' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.label",
"location.city",
"location.id_restaurant",
"location.street_name"
] |
1,762 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | In restaurants with a review of 2, how many restaurants have a street number below 500? | SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.review = 2 AND T1.street_num < 500 | review of 2 refers to review = 2; street number below 500 refers to street_num < 500 | [
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_num"
] |
1,763 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385? | SELECT COUNT(T1.id_restaurant) AS num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'milpitas' AND T2.food_type = 'asian' AND T1.street_name = 'n milpitas blvd' AND T1.id_restaurant > 385 | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,764 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the restaurant's name and ID located at Ocean Avenue, San Francisco? | SELECT T2.label, T1.id_restaurant FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.street_name = 'ocean avenue' | restaurant's name refers to label; Ocean Avenue refers to street_name = 'ocean avenue'; San Francisco refers to city = 'san francisco' | [
"generalinfo.id_restaurant",
"generalinfo.label",
"location.city",
"location.id_restaurant",
"location.street_name"
] |
1,765 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the full address of the restaurant named "Sanuki Restaurant"? | SELECT T2.city, T1.street_num, T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'sanuki restaurant' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | [
"generalinfo.city",
"generalinfo.id_restaurant",
"generalinfo.label",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,766 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List the food type of the restaurant located in 22779 6th St., Hayward City. | SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_num = 22779 AND T1.street_name = '6th St' AND T2.city = 'hayward' | 22779 refers to street_num = 22779; 6th St. refers to street_name = '6th St' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,767 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many American restaurants are located in Front, San Francisco? | SELECT COUNT(T2.food_type = 'american') FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.street_name = 'front' | American restaurant refers to food_type = 'american'; Front refers to street_name = 'front'; San Francisco refers to city = 'san francisco' | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.city",
"location.id_restaurant",
"location.street_name"
] |
1,768 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List the restaurant's ID that has a review greater than the 70% of average review of all American restaurants with street number greater than 2000. | SELECT T1.id_restaurant FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.food_type = 'american' AND T1.street_num > 2000 GROUP BY T1.id_restaurant ORDER BY AVG(T2.review) * 0.7 DESC | American restaurant refers to food_type = 'american'; street number greater than 2000 refers to street_num > 2000; review greater than the 70% of average review refers to review > multiply(avg(review), 0.7) | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review",
"location.id_restaurant",
"location.street_num"
] |
1,769 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Among the restaurants located on the street number ranges from 1000 to 2000, what is the percentage of Afghani restaurants are there? | SELECT CAST(SUM(IIF(T2.food_type = 'afghani', 1, 0)) AS REAL) * 100 / COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE 1000 <= T1.street_num <= 2000 | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | [
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_num"
] |
1,770 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the name of the most popular restaurant serving Asian foods in San Francisco? | SELECT label FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' ) | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.label",
"generalinfo.review"
] |
1,771 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many cities are there in Monterey? | SELECT COUNT(DISTINCT city) FROM geographic WHERE region = 'monterey' | Monterey refers to region = 'monterey' | [
"geographic.city",
"geographic.region"
] |
1,772 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many deli in Belmont have a review rating of 2 or more? | SELECT COUNT(id_restaurant) FROM generalinfo WHERE city = 'belmont' AND review > 2 AND food_type = 'deli' | deli ris a food type; Belmont refers to city = 'belmont'; review rating of 2 or more refers to review > 2 | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"generalinfo.review"
] |
1,773 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which county in northern California has the highest number of cities? | SELECT county FROM geographic WHERE region = 'northern california' GROUP BY county ORDER BY COUNT(city) DESC LIMIT 1 | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | [
"geographic.city",
"geographic.county",
"geographic.region"
] |
1,774 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many restaurants can you find in Concord? | SELECT COUNT(id_restaurant) FROM location WHERE city = 'concord' | Concord refers to city = 'concord' | [
"location.city",
"location.id_restaurant"
] |
1,775 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | In which region can you find the top 4 most popular restaurants? | SELECT T2.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city ORDER BY T1.review DESC LIMIT 4 | the top 4 most popular restaurant refers to top 4 max(review) | [
"generalinfo.city",
"generalinfo.review",
"geographic.city",
"geographic.region"
] |
1,776 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many Chinese restaurants are there on 1st st, Livermore? | SELECT COUNT(T1.id_restaurant) FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'livermore' AND T1.food_type = 'chinese' AND T2.street_name = '1st st' | Chinese restaurant refers to food_type = 'chinese'; 1st st refers to street_name = '1st st'; Livermore refers to city = 'livermore' | [
"generalinfo.city",
"generalinfo.food_type",
"generalinfo.id_restaurant",
"location.id_restaurant",
"location.street_name"
] |
1,777 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many Indian restaurants are there in the Los Angeles area? | SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'indian' AND T1.region = 'los angeles area' | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | [
"generalinfo.city",
"generalinfo.food_type",
"geographic.city",
"geographic.region"
] |
1,778 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | In the Bay Area, what is the most common type of food served by restaurants? | SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1 | the Bay Area refers to region = 'bay area'; the most common type of food refers to max(count(food_type)) | [
"generalinfo.city",
"generalinfo.food_type",
"geographic.city",
"geographic.region"
] |
1,779 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many restaurants in Broadway, Oakland received a review of no more than 3? | SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.street_name = 'broadway' AND T2.review < 3 AND T1.city = 'oakland' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | [
"generalinfo.city",
"generalinfo.review",
"location.city",
"location.id_restaurant",
"location.street_name"
] |
1,780 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | In which region can you find the highest number of Baskin Robbins restaurants? | SELECT T2.region AS num FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'baskin robbins' GROUP BY T2.region ORDER BY COUNT(T1.city) DESC LIMIT 1 | the highest number refers to max(count(city)); Baskin Robbins restaurant refers to label = 'baskin robbins' | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.region"
] |
1,781 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List all the streets where pizza-serving restaurants are found in San Jose. | SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'pizza' AND T1.city = 'san jose' | street refers to street_name; pizza-serving restaurant refers to food_type = 'pizza'; San Jose refers to city = 'san jose' | [
"generalinfo.city",
"generalinfo.food_type",
"location.city",
"location.street_name"
] |
1,782 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | How many types of restaurants are there in the Yosemite and Mono Lake area? | SELECT COUNT(T2.food_type) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'yosemite and mono lake area' | [
"generalinfo.city",
"generalinfo.food_type",
"geographic.city",
"geographic.region"
] | |
1,783 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | What is the full address of the most popular restaurant among the diners? | SELECT T2.street_name, T2.street_num, T2.city FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant ORDER BY T1.review DESC LIMIT 1 | full address refers to street_num, street_name, city; the most popular refers to max(review) | [
"generalinfo.id_restaurant",
"generalinfo.review",
"location.city",
"location.id_restaurant",
"location.street_name",
"location.street_num"
] |
1,784 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | In which counties can you find the restaurant with the highest number of branches? | SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city GROUP BY T2.county ORDER BY COUNT(T1.label) DESC LIMIT 1 | restaurant refers to label; the highest number of branches refers to max(count(city)) | [
"generalinfo.city",
"generalinfo.label",
"geographic.city",
"geographic.county"
] |
1,785 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | Which region has the highest number of restaurants? | SELECT T1.region FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city GROUP BY T1.region ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1 | the highest number refers to max(count(id_restaurant)) | [
"geographic.city",
"geographic.region",
"location.city",
"location.id_restaurant"
] |
1,786 | restaurant | CREATE TABLE geographic
(
city TEXT not null
primary key,
county TEXT null,
region TEXT null
);
CREATE TABLE generalinfo
(
id_restaurant INTEGER not null
primary key,
label TEXT null,
food_type TEXT null,
city TEXT null,
review RE... | List the full address of all the American restaurants with a review of 4 or more? | SELECT T1.street_num, T1.street_name, T1.city FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.review >= 4 | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | [
"generalinfo.city",
"generalinfo.review",
"location.city",
"location.street_name",
"location.street_num"
] |
1,787 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | How many players were born after the year 1985? | SELECT COUNT(Player_Id) FROM Player WHERE SUBSTR(DOB, 1, 4) > 1985 | born after the year 1985 refers to SUBSTR(DOB, 1, 4) > 1985 | [
"Player.DOB",
"Player.Player_Id"
] |
1,788 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | How many matches were there in May, 2008? | SELECT COUNT(Match_Id) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5' | in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5' | [
"Match.Match_Date",
"Match.Match_Id"
] |
1,789 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | For how many times has player no.41 won the "man of the match" award? | SELECT COUNT(Match_Id) FROM `Match` WHERE Man_of_the_Match = 41 | player no.41 won the "man of the match" refers to Man_of_the_Match = 41 | [
"Match.Man_of_the_Match",
"Match.Match_Id"
] |
1,790 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Please list the IDs of all the matches in the year 2008. | SELECT Match_Id FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008' | ID of matches refers to Match_Id; in the year 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' | [
"Match.Match_Date",
"Match.Match_Id"
] |
1,791 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | How many players are from Australia? | SELECT COUNT(CASE WHEN T2.Country_Name = 'Australia' THEN T1.Player_Id ELSE NULL END) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id | Australia refers to Country_Name = 'Australia' | [
"Country.Country_Id",
"Country.Country_Name",
"Player.Country_Name",
"Player.Player_Id"
] |
1,792 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Which country is the oldest player from? | SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_Id WHERE T2.Country_Name IS NOT NULL ORDER BY T2.DOB LIMIT 1 | country refers to Country_Name; the oldest refers to min(DOB) | [
"Country.Country_Id",
"Country.Country_Name",
"Player.Country_Name",
"Player.DOB"
] |
1,793 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | What is the bowling skill of SC Ganguly? | SELECT T1.Bowling_Skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T2.Bowling_skill = T1.Bowling_Id WHERE T2.Player_Name = 'SC Ganguly' | SC Ganguly refers to Player_Name = 'SC Ganguly' | [
"Bowling_Style.Bowling_Id",
"Bowling_Style.Bowling_Skill",
"Player.Bowling_skill",
"Player.Player_Name"
] |
1,794 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Among the players who use the right hand as their batting hand, how many of them were born after 1985? | SELECT SUM(CASE WHEN SUBSTR(T1.DOB, 1, 4) > 1985 THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_Hand = 'Right-hand bat' | right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985 | [
"Batting_Style.Batting_Hand",
"Batting_Style.Batting_Id",
"Player.Batting_hand",
"Player.DOB"
] |
1,795 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Please list the names of the players who use the right hand as their batting hand and are from Australia. | SELECT T2.Player_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_id INNER JOIN Batting_Style AS T3 ON T2.Batting_hand = T3.Batting_Id WHERE T1.Country_Name = 'Australia' AND T3.Batting_Hand = 'Right-hand bat' | name of player refers to Player_Name; right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; Australia refers to Country_Name = 'Australia' | [
"Batting_Style.Batting_Hand",
"Batting_Style.Batting_Id",
"Country.Country_Name",
"Country.Country_id",
"Player.Batting_hand",
"Player.Country_Name",
"Player.Player_Name"
] |
1,796 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Please list the bowling skills of all the players from Australia. | SELECT T2.Bowling_Skill FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id INNER JOIN Country AS T3 ON T1.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'Australia' GROUP BY T2.Bowling_Skill | Australia refers to Country_Name = 'Australia' | [
"Bowling_Style.Bowling_Id",
"Bowling_Style.Bowling_Skill",
"Country.Country_Id",
"Country.Country_Name",
"Player.Bowling_skill",
"Player.Country_Name"
] |
1,797 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | Among the players whose bowling skill is "Legbreak", when was the oldest one of them born? | SELECT MIN(T1.DOB) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_Skill = 'Legbreak' | the oldest refers to min(DOB); date of birth refers to DOB | [
"Bowling_Style.Bowling_Id",
"Bowling_Style.Bowling_Skill",
"Player.Bowling_skill",
"Player.DOB"
] |
1,798 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | What is the bowling skill used by most players? | SELECT T1.Bowling_Skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T2.Bowling_skill = T1.Bowling_Id GROUP BY T1.Bowling_Skill ORDER BY COUNT(T1.Bowling_Skill) DESC LIMIT 1 | bowling skill used by most players refers to max(count(Bowling_Skill)) | [
"Bowling_Style.Bowling_Id",
"Bowling_Style.Bowling_Skill",
"Player.Bowling_skill"
] |
1,799 | soccer_2016 | CREATE TABLE Batting_Style
(
Batting_Id INTEGER
primary key,
Batting_hand TEXT
);
CREATE TABLE Bowling_Style
(
Bowling_Id INTEGER
primary key,
Bowling_skill TEXT
);
CREATE TABLE City
(
City_Id INTEGER
primary key,
City_Name TEXT,
Country_id INTE... | What is the name of the player who won the "man of the match" award in the match on 2008/4/18? | SELECT T2.Player_Name FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match WHERE T1.Match_Date = '2008-04-18' | name of player refers to Player_Name; on 2008/4/18 refers to Match_Date = '2008-04-18' | [
"Match.Man_of_the_Match",
"Match.Match_Date",
"Player.Player_Id",
"Player.Player_Name"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.