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
5,500
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Provide the numbers of the menu item which includes Fresh lobsters in every style and location where that dish was used on a menu.
SELECT T2.menu_id, T1.xpos, T1.ypos FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Fresh lobsters in every style'
Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);
[ "Dish.id", "Dish.name", "Menu.id", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuItem.xpos", "MenuItem.ypos", "MenuPage.id", "MenuPage.menu_id" ]
5,501
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM"s sponsored menu.
SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM' AND T1.xpos < 0.25 AND T1.ypos < 0.25
appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';
[ "Dish.id", "Dish.name", "Menu.id", "Menu.sponsor", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuItem.xpos", "MenuItem.ypos", "MenuPage.id", "MenuPage.menu_id" ]
5,502
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Provide the sponsor and event of the menu which includes Cerealine with Milk.
SELECT T3.name, T3.event FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Cerealine with Milk'
Cerealine with Milk is a name of dish;
[ "Dish.id", "Dish.name", "Menu.event", "Menu.id", "Menu.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id" ]
5,503
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many percent of Bluefish dishes are located at the center of the menu page?
SELECT CAST(SUM(CASE WHEN T2.xpos BETWEEN 0.25 AND 0.75 AND T2.ypos BETWEEN 0.25 AND 0.75 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.id) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name LIKE '%BLuefish%'
percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.id", "MenuItem.xpos", "MenuItem.ypos" ]
5,504
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Who is the sponsor of menu with ID 12463?
SELECT sponsor FROM Menu WHERE id = 12463
FALSE;
[ "Menu.id", "Menu.sponsor" ]
5,505
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the event sponsored by the Republican House?
SELECT event FROM Menu WHERE sponsor = 'REPUBLICAN HOUSE'
sponsored by the Republican House refers to sponsor = 'REPUBLICAN HOUSE';
[ "Menu.event", "Menu.sponsor" ]
5,506
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Where is the place that menu with ID 12472 was created for?
SELECT location FROM Menu WHERE id = 12472
place refers to location;
[ "Menu.id", "Menu.location" ]
5,507
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Please describe the menu sponsored by Noviomagus physically.
SELECT physical_description FROM Menu WHERE sponsor = 'Noviomagus'
describe the menu physically refers to physical_description; sponsored by Noviomagus refers to sponsor = 'Noviomagus';
[ "Menu.physical_description", "Menu.sponsor" ]
5,508
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the occasion for menu with ID 12463?
SELECT occasion FROM Menu WHERE id = 12463
FALSE;
[ "Menu.id", "Menu.occasion" ]
5,509
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the locations of menu sponsored by Norddeutscher Lloyd Bremen.
SELECT location FROM Menu WHERE sponsor = 'Norddeutscher Lloyd Bremen'
sponsored by Norddeutscher Lloyd Bremen refers to sponsor = 'Norddeutscher Lloyd Bremen';
[ "Menu.location", "Menu.sponsor" ]
5,510
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the menu page IDs for menu sponsored by Occidental & Oriental?
SELECT T2.id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.sponsor = 'Occidental & Oriental'
menu page IDs refers to MenuPage.id; sponsored by Occidental & Oriental refers to sponsor = 'Occidental & Oriental';
[ "Menu.id", "Menu.sponsor", "MenuPage.menu_id" ]
5,511
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the image IDs for menu located at Manhattan Hotel.
SELECT T1.image_id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.location = 'Manhattan Hotel'
located at Manhattan Hotel refers to location = 'Manhattan Hotel';
[ "Menu.id", "Menu.location", "MenuPage.image_id", "MenuPage.menu_id" ]
5,512
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
State the full height and width for menu called "El Fuerte Del Palmar".
SELECT T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.name = 'El Fuerte Del Palmar'
width refers to full_width; El Fuerte Del Palmar is a name of menu;
[ "Menu.id", "Menu.name", "MenuPage.full_height", "MenuPage.full_width", "MenuPage.menu_id" ]
5,513
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Is "c02c9a3b-6881-7080-e040-e00a180631aa" the uuid for menu called "The Biltmore"?
SELECT CASE WHEN T2.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa' THEN 'yes' ELSE 'no' END AS yn FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'The Biltmore' AND T2.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa'
if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called Th...
[ "Menu.id", "Menu.name", "MenuPage.menu_id", "MenuPage.uuid" ]
5,514
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
State the name of menu with the longest full height.
SELECT T2.name FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id ORDER BY T1.full_height DESC LIMIT 1
longest full height refers to MAX(full_height);
[ "Menu.id", "Menu.name", "MenuPage.full_height", "MenuPage.menu_id" ]
5,515
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the page count for menu with page ID of 130?
SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130
page ID of 130 refers MenuPage.id = 130;
[ "Menu.id", "Menu.page_count", "MenuPage.id", "MenuPage.menu_id" ]
5,516
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How much is the price of menu with image ID 4000009194?
SELECT T3.price FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id WHERE T2.image_id = 4000009194
FALSE;
[ "Menu.id", "MenuItem.menu_page_id", "MenuItem.price", "MenuPage.id", "MenuPage.image_id", "MenuPage.menu_id" ]
5,517
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the page numbers for menu with dishes on the right upper corner.
SELECT T2.page_number FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id WHERE T3.xpos > 0.75 AND T3.ypos < 0.25
on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;
[ "Menu.id", "MenuItem.menu_page_id", "MenuItem.xpos", "MenuItem.ypos", "MenuPage.id", "MenuPage.menu_id", "MenuPage.page_number" ]
5,518
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the name of dishes from menu created in April.
SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE SUBSTR(T1.created_at, 7, 1) = '4'
created in April refers to SUBSTR(created_at, 7, 1) = '4';
[ "Dish.id", "Dish.name", "MenuItem.created_at", "MenuItem.dish_id" ]
5,519
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down name of dishes from menu with menu page ID 1389.
SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.menu_page_id = 1389
FALSE;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id" ]
5,520
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the highest price of dishes with menu item ID 1 to 5?
SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.id BETWEEN 1 AND 5 ORDER BY T2.price DESC LIMIT 1
highest price refers to MAX(price); menu item ID 1 to 5 refers to MenuItem.id BETWEEN 1 AND 5;
[ "Dish.id", "MenuItem.dish_id", "MenuItem.id", "MenuItem.price" ]
5,521
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List down the name of dishes that were positioned on the left upper corner.
SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.xpos < 0.25 AND T2.ypos < 0.25
positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.xpos", "MenuItem.ypos" ]
5,522
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Calculate the total dish count for menu with uuid of "510d47e4-2958-a3d9-e040-e00a18064a99" & "510d47e4-295a-a3d9-e040-e00a18064a99".
SELECT SUM(CASE WHEN T2.uuid = '510d47e4-2958-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) - SUM(CASE WHEN T2.uuid = '510d47e4-295a-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id
total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');
[ "Menu.dish_count", "Menu.id", "MenuPage.menu_id", "MenuPage.uuid" ]
5,523
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Calculate the total price of items for menu with ID 12882.
SELECT SUM(T2.price) FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id WHERE T1.menu_id = 12882
total price = SUM(price);
[ "MenuItem.menu_page_id", "MenuItem.price", "MenuPage.id", "MenuPage.menu_id" ]
5,524
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List the top five dishes, by descending order, in terms of highest price.
SELECT name FROM Dish ORDER BY highest_price DESC LIMIT 5
highest price refers to MAX(highest_price);
[ "Dish.highest_price", "Dish.name" ]
5,525
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the dishes, how many of them are for free?
SELECT COUNT(*) FROM Dish WHERE lowest_price = 0
free refers to lowest_price = 0;
[ "Dish.lowest_price" ]
5,526
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What dishes made their first and last appearances in 1855 and 1900, respectively?
SELECT name FROM Dish WHERE first_appeared = 1855 AND last_appeared = 1900
first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;
[ "Dish.first_appeared", "Dish.last_appeared", "Dish.name" ]
5,527
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Write down the top ten menus with the highest dish count.
SELECT name FROM Menu GROUP BY name ORDER BY dish_count DESC LIMIT 10
highest dish count refers to MAX(dish_count);
[ "Menu.dish_count", "Menu.name" ]
5,528
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many dishes appear in the right upper corner of the menu page?
SELECT COUNT(*) FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T1.dish_id = T2.id WHERE T1.xpos > 0.75 AND T1.ypos < 0.25
appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;
[ "Dish.id", "MenuItem.dish_id", "MenuItem.xpos", "MenuItem.ypos" ]
5,529
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How long has the "Clear Green Turtle" dish appeared on the menu, and tell me when its latest update was?
SELECT T1.last_appeared - T1.first_appeared, T2.updated_at FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle'
Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;
[ "Dish.first_appeared", "Dish.id", "Dish.last_appeared", "Dish.name", "MenuItem.dish_id", "MenuItem.updated_at" ]
5,530
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Tally the dishes that have appeared on the menu for more than 100 years.
SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.last_appeared - T1.first_appeared > 100
appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;
[ "Dish.first_appeared", "Dish.id", "Dish.last_appeared", "Dish.name", "MenuItem.dish_id" ]
5,531
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many dishes have appeared on the menu in less than 5 years?
SELECT COUNT(*) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.last_appeared - T1.first_appeared < 5
appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;
[ "Dish.first_appeared", "Dish.id", "Dish.last_appeared", "MenuItem.dish_id" ]
5,532
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Give me the name and menu price of dishes that were free.
SELECT T2.name, T1.price FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.lowest_price = 0
dishes that were free refers to lowest_price = 0;
[ "Dish.id", "Dish.lowest_price", "Dish.name", "MenuItem.dish_id", "MenuItem.price" ]
5,533
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How much does the dish on page 2 of menu ID 12474 cost?
SELECT T1.price FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T2.id = T1.menu_page_id WHERE T2.menu_id = 12474 AND T2.page_number = 2
page 2 refers to page_number = 2;
[ "MenuItem.menu_page_id", "MenuItem.price", "MenuPage.id", "MenuPage.menu_id", "MenuPage.page_number" ]
5,534
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the dishes, how many of them were created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC.
SELECT SUM(CASE WHEN T2.created_at BETWEEN '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id
created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';
[ "Dish.id", "MenuItem.created_at", "MenuItem.dish_id" ]
5,535
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Who are the sponsors of the menu whose image full height is more than 10000 mm?
SELECT T2.sponsor FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T1.full_height = 10000
image full height is more than 10000 mm refers to full_height > 10000;
[ "Menu.id", "Menu.sponsor", "MenuPage.full_height", "MenuPage.menu_id" ]
5,536
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Write down the image ID, full height, and full width of the menu that were used in the "100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER" event.
SELECT T1.image_id, T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.event = '100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER'
FALSE;
[ "Menu.event", "Menu.id", "MenuPage.full_height", "MenuPage.full_width", "MenuPage.image_id", "MenuPage.menu_id" ]
5,537
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Under what events was the menu page's full width less than 2000 mm?
SELECT T1.event FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.full_width = 2000
full width less than 2000 mm refers to full_width < 2000;
[ "Menu.event", "Menu.id", "MenuPage.full_width", "MenuPage.menu_id" ]
5,538
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Name the dishes that cost 180,000.
SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.price = 180000
cost 180,000 refers to price = 180000;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.price" ]
5,539
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the position coordinate on the page menu of the "Small Hominy" dish and how long did it appear?
SELECT T2.xpos, T2.ypos, T1.last_appeared - T1.first_appeared FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Small Hominy'
position coordinate = xpos, ypos; Small Hominy is a name of dish; how long it appear = SUBTRACT(last_appeared, first_appeared);
[ "Dish.first_appeared", "Dish.id", "Dish.last_appeared", "Dish.name", "MenuItem.dish_id", "MenuItem.xpos", "MenuItem.ypos" ]
5,540
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Calculate the image area of the page menu for the dish named "Baked Stuffed Mullet & Sauce Pomard". Please include the page number and image ID.
SELECT T1.full_height * T1.full_width, T1.page_number, T1.image_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Baked Stuffed Mullet & Sauce Pomard'
image area = MULTIPLY(full_height, full_width);
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.full_height", "MenuPage.full_width", "MenuPage.id", "MenuPage.image_id", "MenuPage.page_number" ]
5,541
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many dishes appeared more than once on a menu?
SELECT COUNT(*) FROM Dish WHERE times_appeared > Dish.menus_appeared
appeared more than once on a menu refers to times_appeared > menus_appeared;
[ "Dish.menus_appeared", "Dish.times_appeared" ]
5,542
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many menus sponsored by Krogs Fiske Restaurant were created in April 2015?
SELECT COUNT(*) FROM Menu WHERE date LIKE '2015-04%' AND sponsor = 'Krogs Fiskerestaurant'
sponsored by Krogs Fiske Restaurant refers to sponsor = 'Krogs Fiskerestaurant'; created in April 2015 refers to date like '2015-04%';
[ "Menu.date", "Menu.sponsor" ]
5,543
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Which dish has the longest history?
SELECT name FROM Dish ORDER BY last_appeared - Dish.first_appeared DESC LIMIT 1
longest history refers to MAX(SUBTRACT(last_appeared, first_appeared));
[ "Dish.first_appeared", "Dish.last_appeared", "Dish.name" ]
5,544
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
On 1887-07-21, what was the event that lead to the creation of menu id 21380?
SELECT event FROM Menu WHERE date = '1887-07-21' AND id = 21380
On 1887-07-21 refers to date = '1887-07-21';
[ "Menu.date", "Menu.event", "Menu.id" ]
5,545
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many pages are there in the "Emil Kuehn" menu?
SELECT SUM(CASE WHEN T1.name = 'Emil Kuehn' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id
Emil Kuehn is a name of menu;
[ "Menu.id", "Menu.name", "MenuPage.menu_id" ]
5,546
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many menus include puree of split peas aux croutons?
SELECT SUM(CASE WHEN T1.name = 'Puree of split peas aux croutons' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id
puree of split peas aux croutons is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id" ]
5,547
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What are the names of the dishes with a stable price that were created in April of 2011?
SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE SUBSTR(T2.created_at, 1, 4) = '2011' AND SUBSTR(T2.created_at, 7, 1) = '4' AND T1.highest_price IS NULL
dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';
[ "Dish.highest_price", "Dish.id", "Dish.name", "MenuItem.created_at", "MenuItem.dish_id" ]
5,548
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the name of the menu with the highest number of pages?
SELECT T1.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id GROUP BY T2.menu_id ORDER BY COUNT(T2.page_number) DESC LIMIT 1
highest number of pages refers to MAX(COUNT(page_number));
[ "Menu.id", "Menu.name", "MenuPage.menu_id", "MenuPage.page_number" ]
5,549
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Provide the menu page ids of all the menu that includes mashed potatoes.
SELECT T2.menu_page_id FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Mashed potatoes'
mashed potatoes is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id" ]
5,550
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menus sponsored by Pacific Mail Steamship Company, how many menus have no more than 2 pages?
SELECT COUNT(*) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.sponsor = 'PACIFIC MAIL STEAMSHIP COMPANY' GROUP BY T2.menu_id HAVING COUNT(T2.page_number) <= 2
sponsored by Pacific Mail Steamship Company refers to sponsor = 'PACIFIC MAIL STEAMSHIP COMPANY'; no more than 2 pages refers to COUNT(page_number) < = 2;
[ "Menu.id", "Menu.sponsor", "MenuPage.menu_id", "MenuPage.page_number" ]
5,551
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menus that include milk, what is the menu page id of the menu that has the highest price?
SELECT T1.menu_page_id FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.name = 'Milk' ORDER BY T1.price DESC LIMIT 1
milk is a name of dish; highest price refers to MAX(price);
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuItem.price" ]
5,552
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the menu id of the menu sponsored by Occidental and Oriental Steamship Company with the highest number of pages?
SELECT T2.menu_id FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY' GROUP BY T2.menu_id ORDER BY COUNT(T2.page_number) DESC LIMIT 1
sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));
[ "Menu.id", "Menu.sponsor", "MenuPage.menu_id", "MenuPage.page_number" ]
5,553
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
List the positions of the dish "breaded veal cutlet with peas" on every menu where it appeared.
SELECT T2.xpos, T2.ypos FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'breaded veal cutlet with peas'
positions = xpos, ypos; breaded veal cutlet with peas is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.xpos", "MenuItem.ypos" ]
5,554
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What are the names of the dishes shown in the lower right corner of menu page 48706?
SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.xpos > 0.75 AND T1.ypos > 0.75 AND T1.menu_page_id = 48706
shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuItem.xpos", "MenuItem.ypos" ]
5,555
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What are the names of the dishes in the menu sponsored by The Society of Cumberland that was created for the 19th reunion at Grand Pacific Hotel in Chicago, Illinois?
SELECT T4.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id INNER JOIN Dish AS T4 ON T3.dish_id = T4.id WHERE T1.sponsor = 'THE SOCIETY OF THE CUMBERLAND' AND T1.event = '19NTH REUNION' AND T1.place = 'GRAND PACIFIC HOTEL,CHICAGO,ILL'
sponsored by The Society of Cumberland refers to sponsor = 'THE SOCIETY OF THE CUMBERLAND'; created for the 19th reunion refers to event = '19NTH REUNION'; Grand Pacific Hotel in Chicago, Illinois refers to place = 'GRAND PACIFIC HOTEL, CHICAGO, ILL';
[ "Dish.id", "Dish.name", "Menu.event", "Menu.id", "Menu.place", "Menu.sponsor", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id" ]
5,556
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price?
SELECT T4.sponsor FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id INNER JOIN Menu AS T4 ON T4.id = T1.menu_id WHERE T3.name = 'Baked apples with cream' AND T3.id = 107 ORDER BY T2.price DESC LIMIT 1
baked apples with cream is a name of dish; highest price refers to MAX(price);
[ "Dish.id", "Dish.name", "Menu.id", "Menu.sponsor", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuItem.price", "MenuPage.id", "MenuPage.menu_id" ]
5,557
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the average number of dishes per menu in the Souper de Luxe menus? Identify what is the name of the dish that appeared the most in all of its menus.
SELECT COUNT(*), T1.dish_id FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Souper de Luxe' GROUP BY T3.id ORDER BY COUNT(T1.dish_id) DESC LIMIT 1
average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));
[ "Dish.id", "Menu.id", "Menu.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id" ]
5,558
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Please list the IDs of all the menus that are DIYs of the restaurant.
SELECT id FROM Menu WHERE sponsor IS NULL
menus that are DIYs of the restaurant refers to sponsor is null;
[ "Menu.id", "Menu.sponsor" ]
5,559
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many menus were created for lunch?
SELECT COUNT(*) FROM Menu WHERE event = 'LUNCH'
created for lunch refers to event = 'LUNCH';
[ "Menu.event" ]
5,560
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menus with over 10 pages, how many of them have over 20 dishes?
SELECT COUNT(*) FROM Menu WHERE page_count > 10 AND dish_count > 20
menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;
[ "Menu.dish_count", "Menu.page_count" ]
5,561
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the ID of the menu with the most number of dishes?
SELECT id FROM Menu ORDER BY dish_count DESC LIMIT 1
most number of dishes refers to MAX(COUNT(dish_count));
[ "Menu.dish_count", "Menu.id" ]
5,562
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many dishes are there on the menu "Zentral Theater Terrace"?
SELECT COUNT(*) FROM Menu WHERE name = 'Zentral Theater Terrace'
Zentral Theater Terrace is a name of menu;
[ "Menu.name" ]
5,563
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menus that did not support taking out or booking in advance, how many of them were created before 1950?
SELECT COUNT(*) FROM Menu WHERE call_number IS NULL AND strftime('%Y', date) < '1950'
did not support taking out or booking in advance refers to call_number is null; created before 1950 refers to strftime('%Y', date) < '1950';
[ "Menu.call_number", "Menu.date" ]
5,564
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the image ID of page 1 of the menu "Zentral Theater Terrace"?
SELECT T2.image_id FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'Zentral Theater Terrace' AND T2.page_number = 1
page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;
[ "Menu.id", "Menu.name", "MenuPage.image_id", "MenuPage.menu_id", "MenuPage.page_number" ]
5,565
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
To which menu does the menu page image ID5189412 belong? Please give its name.
SELECT T1.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.image_id = 5189412
FALSE;
[ "Menu.id", "Menu.name", "MenuPage.image_id", "MenuPage.menu_id" ]
5,566
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Which menu page has a bigger width, page 1 of "Zentral Theater Terrace" or page 1 of "Young's Hotel"?
SELECT CASE WHEN SUM(CASE WHEN T1.name = 'Zentral Theater Terrace' THEN T2.full_width ELSE 0 END) - SUM(CASE WHEN T1.name = 'Young''s Hotel' THEN T2.full_width ELSE 0 END) > 0 THEN 'Zentral Theater Terrace' ELSE 'Young''s Hotel' END FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id
if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width...
[ "Menu.id", "Menu.name", "MenuPage.full_width", "MenuPage.menu_id" ]
5,567
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Which menu page of "Ritz Carlton" has the biggest height?
SELECT T1.page_number FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.name = 'Ritz Carlton' ORDER BY T1.full_height DESC LIMIT 1
Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);
[ "Menu.id", "Menu.name", "MenuPage.full_height", "MenuPage.menu_id", "MenuPage.page_number" ]
5,568
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menu pages of "Ritz Carlton", how many of them have a width of over 1000?
SELECT SUM(CASE WHEN T1.name = 'Ritz Carlton' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.full_width > 1000
Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;
[ "Menu.id", "Menu.name", "MenuPage.full_width", "MenuPage.menu_id" ]
5,569
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How many dishes are there on page 1 of menu ID12882?
SELECT SUM(CASE WHEN T1.page_number = 1 THEN 1 ELSE 0 END) FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id WHERE T1.menu_id = 12882
page 1 refers to page_number = 1;
[ "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id", "MenuPage.page_number" ]
5,570
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Please list the names of all the dishes on page 1 of menu ID12882.
SELECT T3.name FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T1.menu_id = 12882 AND T1.page_number = 1
page 1 refers to page_number = 1;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id", "MenuPage.page_number" ]
5,571
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Please list the page numbers of all the menu pages on which the dish "Chicken gumbo" had appeared.
SELECT T1.page_number FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo'
Chicken gumbo is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.page_number" ]
5,572
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menu pages on which the dish "Chicken gumbo" had appeared, what is the menu ID of the one with the biggest width?
SELECT T1.id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo' ORDER BY T1.full_width DESC LIMIT 1
Chicken gumbo is a name of dish; biggest width refers to MAX(full_width);
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.menu_page_id", "MenuPage.full_width", "MenuPage.id" ]
5,573
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
For how many times had the dish "Chicken gumbo" appeared on a menu page?
SELECT SUM(CASE WHEN T1.name = 'Chicken gumbo' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id
Chicken gumbo is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id" ]
5,574
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
Among the menu pages on which the dish "Paysanne Soup" had appeared, how many of them had a stable price for the dish?
SELECT SUM(CASE WHEN T1.name = 'Paysanne Soup' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL
Paysanne Soup is a name of dish; stable price refers to highest_price is null;
[ "Dish.highest_price", "Dish.id", "Dish.name", "MenuItem.dish_id" ]
5,575
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the highest price of the dish "Chicken gumbo" on a menu page?
SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Chicken gumbo' ORDER BY T2.price DESC LIMIT 1
highest price refers to MAX(price); Chicken gumbo is a name of dish;
[ "Dish.id", "Dish.name", "MenuItem.dish_id", "MenuItem.price" ]
5,576
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
How much space does page 1 of the menu "Zentral Theater Terrace" cover?
SELECT T2.full_height * T2.full_width FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'Zentral Theater Terrace' AND T2.page_number = 1
how much space = MULTIPLY(full_height, full_width); Zentral Theater Terrace is a name of menu;
[ "Menu.id", "Menu.name", "MenuPage.full_height", "MenuPage.full_width", "MenuPage.menu_id", "MenuPage.page_number" ]
5,577
menu
CREATE TABLE Dish ( id INTEGER primary key, name TEXT, description TEXT, menus_appeared INTEGER, times_appeared INTEGER, first_appeared INTEGER, last_appeared INTEGER, lowest_price REAL, highest_price REAL ); CREATE TABLE Menu ( id ...
What is the average number of dishes per menu page of menu ID12882?
SELECT CAST(COUNT(dish_id) AS REAL) / COUNT(T3.page_count) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T2.menu_id = 12882
average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));
[ "Menu.id", "Menu.page_count", "MenuItem.menu_page_id", "MenuPage.id", "MenuPage.menu_id" ]
5,578
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
How many shipments were ordered by S K L Enterprises Inc in 2017?
SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND STRFTIME('%Y', T2.ship_date) = '2017'
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
[ "customer.cust_id", "customer.cust_name", "shipment.cust_id", "shipment.ship_date", "shipment.ship_id" ]
5,579
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
What is the total number of pounds being transported for S K L Enterprises Inc?
SELECT SUM(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc'
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
[ "customer.cust_id", "customer.cust_name", "shipment.cust_id", "shipment.weight" ]
5,580
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?
SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND T3.first_name = 'Sue' AND T3.last_name = 'Newell'
"S K L Enterprises Inc" is the cust_name
[ "customer.cust_id", "customer.cust_name", "driver.driver_id", "driver.first_name", "driver.last_name", "shipment.cust_id", "shipment.driver_id" ]
5,581
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
How many shipments were ordered by a customer in Florida?
SELECT COUNT(T1.cust_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.state = 'FL'
customer in Florida refers to state = 'FL'
[ "customer.cust_id", "customer.state", "shipment.cust_id" ]
5,582
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Please list the IDs of all the shipments made by a retailer customer.
SELECT T2.ship_id FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_type = 'retailer'
"retailer" is the cust_type;  IDs of shipments refers to ship_id
[ "customer.cust_id", "customer.cust_type", "shipment.cust_id", "shipment.ship_id" ]
5,583
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000?
SELECT COUNT(COUNTCUSID) FROM ( SELECT COUNT(T1.cust_id) AS COUNTCUSID FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2017' AND T1.annual_revenue > 30000000 GROUP BY T1.cust_id HAVING COUNT(T2.ship_id) >= 1 ) T3
shipment in 2017 refers to Cast(ship_date AS DATE) = 2017; annual revenue of over 30000000 refers to annual_revenue > 30000000
[ "customer.annual_revenue", "customer.cust_id", "shipment.cust_id", "shipment.ship_date", "shipment.ship_id" ]
5,584
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
How many shipments in 2017 were done by Sue Newell?
SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' AND T2.first_name = 'Sue' AND T2.last_name = 'Newell'
in 2017 refers to Cast(ship_date AS DATE) = 2017
[ "driver.driver_id", "driver.first_name", "driver.last_name", "shipment.driver_id", "shipment.ship_date" ]
5,585
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
What is the full name of the driver that has done the most shipments in 2017?
SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' GROUP BY T2.first_name, T2.last_name ORDER BY COUNT(*) DESC LIMIT 1
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
[ "driver.driver_id", "driver.first_name", "driver.last_name", "shipment.driver_id", "shipment.ship_date" ]
5,586
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Among the shipments in 2017, how many of them have the destination in New Jersey?
SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' AND T2.state = 'New Jersey'
in 2017 refers to Cast(ship_date AS DATE) = 2017; 'New Jersey' is the state
[ "city.city_id", "city.state", "shipment.city_id", "shipment.ship_date" ]
5,587
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
What is the maximum weight being transported to New York during a single shipment?
SELECT MAX(T1.weight) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'New York'
"New York" is the city_name; maximum weight refers to Max(weight)
[ "city.city_id", "city.city_name", "shipment.city_id", "shipment.weight" ]
5,588
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
How much more pounds in total were transported to New York than to Chicago?
SELECT SUM(CASE WHEN T2.city_name = 'New York' THEN T1.weight ELSE 0 END) - SUM(CASE WHEN T2.city_name = 'Chicago' THEN T1.weight ELSE 0 END) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
[ "city.city_id", "city.city_name", "shipment.city_id", "shipment.weight" ]
5,589
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.
SELECT DISTINCT T3.city_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T1.cust_name = 'S K L Enterprises Inc'
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
[ "city.city_id", "city.city_name", "customer.cust_id", "customer.cust_name", "shipment.city_id", "shipment.cust_id" ]
5,590
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?
SELECT AVG(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc'
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
[ "customer.cust_id", "customer.cust_name", "shipment.cust_id", "shipment.weight" ]
5,591
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?
SELECT CAST(SUM(CASE WHEN T2.city_name = 'Jacksonville' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.state = 'Florida'
"Florida" is the state; "Jacksonville" is city_name;
[ "city.city_id", "city.city_name", "city.state", "shipment.city_id" ]
5,592
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
State the headquarter of the truck which completed shipment no.1045.
SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = 1045
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
[ "shipment.ship_id", "shipment.truck_id", "truck.make", "truck.truck_id" ]
5,593
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
How many shipments were delivered by the oldest truck model?
SELECT COUNT(*) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id GROUP BY T1.model_year ORDER BY T1.model_year ASC LIMIT 1
oldest truck model refers to Min(model_year)
[ "shipment.truck_id", "truck.model_year", "truck.truck_id" ]
5,594
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Who was the customer of shipment no.1275? Give the customer's name.
SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_id = '1275'
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
[ "customer.cust_id", "customer.cust_name", "shipment.cust_id", "shipment.ship_id" ]
5,595
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Where was the destination city of shipment no.1701?
SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1701'
shipment no. 1701 refers to ship_id = 1701; destination city refers to city_name
[ "city.city_id", "city.city_name", "shipment.city_id", "shipment.ship_id" ]
5,596
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Give the name of the driver of shipment no.1021.
SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1021'
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
[ "driver.driver_id", "driver.first_name", "driver.last_name", "shipment.driver_id", "shipment.ship_id" ]
5,597
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Tell the name of the driver who received the shipment on 2017/11/5.
SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_date = '2017-11-05'
shipment on 2017/11/5 refers to ship_date = '2017-11/05'; name refers to first_name, last_name
[ "driver.driver_id", "driver.first_name", "driver.last_name", "shipment.driver_id", "shipment.ship_date" ]
5,598
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Show the population of the city which was the destination of shipment no.1398.
SELECT T2.population FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1398'
shipment no. 1398 refers to ship_id = 1398
[ "city.city_id", "city.population", "shipment.city_id", "shipment.ship_id" ]
5,599
shipping
CREATE TABLE city ( city_id INTEGER primary key, city_name TEXT, state TEXT, population INTEGER, area REAL ); CREATE TABLE customer ( cust_id INTEGER primary key, cust_name TEXT, annual_revenue INTEGER, cust_type TEXT, addr...
Provide the ship date of the first shipment to customers in South Carolina.
SELECT MIN(T1.ship_date) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'SC'
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
[ "customer.cust_id", "customer.state", "shipment.cust_id", "shipment.ship_date" ]