Chinastark/bird_dataset huggingface dataset:
Database: menu
Note: do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;
Question: How many dishes do not have correct data for the year in which it appeared first?
SQL: SELECT count(*) FROM dish WHERE first_appeared < 1851 OR first_appeared > 2012
Database: menu
Note: if (SUBTRACT(last_appeared, first_appeared) WHERE name = 'Anchovies') > (SUBTRACT(last_appeared, first_appeared) WHERE name = 'Fresh lobsters in every style'), it means 'Anchovies' lasted longer; if (SUBTRACT(last_appeared , first_appeared) WHERE name = 'Fresh lobsters in every style') > (SUBTRACT(last_appeared , first_appeared) WHERE name = 'Anchovies') it means 'Fresh lobsters in every style' last longer;
Question: Which dish lasted longer, Anchovies or Fresh lobsters in every style?
SQL: SELECT CASE WHEN sum(CASE WHEN name = 'Anchovies' THEN last_appeared - first_appeared ELSE 0 END) - sum(CASE WHEN name = 'Fresh lobsters in every style' THEN last_appeared - first_appeared ELSE 0 END) > 0 THEN 'Anchovies' ELSE 'Fresh lobsters in every style' END FROM dish WHERE name IN ('Fresh lobsters in every style', 'Anchovies')
Database: menu
Note: dishes that were once free refers to lowest_price = 0; appeared on most menus refers to MAX(menus_appeared);
Question: Among all the dishes that were once free, what is the name of the dish that had appeared on most menus?
SQL: SELECT name FROM dish WHERE lowest_price = 0 ORDER BY menus_appeared DESC LIMIT 1
Database: menu
Note: 4 pages refers to page_count = 4;
Question: How many menus with the name "Waldorf Astoria" have 4 pages?
SQL: SELECT count(*) FROM menu WHERE name = 'Waldorf Astoria' AND page_count = 4
Database: menu
Note: appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;
Question: What is the name of the dish that appeared on the upper left corner on menu page no. 1389?
SQL: SELECT dish.name FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE menuitem.menu_page_id = 1389 AND menuitem.xpos < 0.25 AND menuitem.ypos < 0.25
Database: menu
Note: Clear green turtle is a name of dish;
Question: Please list the prices of the dish "Clear green turtle" on every menu page it appeared on.
SQL: SELECT menuitem.price FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.name = 'Clear green turtle'
Database: menu
Note: Clear green turtle is a name of dish; stable price refers to highest_price is null;
Question: Among all the menu pages with the appearance of the dish "Clear green turtle", how many of them have the dish at a stable price?
SQL: SELECT sum(CASE WHEN dish.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.highest_price IS NULL
Database: menu
Note: highest price refers to MAX(price); Clear green turtle is a name of dish;
Question: What is the highest price of the dish "Clear green turtle" on a menu page?
SQL: SELECT menuitem.price FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.name = 'Clear green turtle' ORDER BY menuitem.price DESC LIMIT 1
Database: menu
Note: Clear green turtle is a name of dish;
Question: Please list the IDs of all the menus in which the dish "Clear green turtle" had appeared.
SQL: SELECT menupage.menu_id FROM menupage INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Clear green turtle'
Database: menu
Note: Clear green turtle is a name of dish; dollar as currency refers to currency = 'Dollars';
Question: Among the menus in which the dish "Clear green turtle" had appeared, how many of them used the dollar as their currency?
SQL: SELECT sum(CASE WHEN menu.currency = 'Dollars' THEN 1 ELSE 0 END) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Clear green turtle'
Database: menu
Note: Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;
Question: Among the menus in which the dish "Clear green turtle" had appeared, how many of them did not support taking out or booking in advance?
SQL: SELECT sum(CASE WHEN dish.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menu.call_number IS NULL
Database: menu
Note: Zentral Theater Terrace is a name of menu;
Question: Please list the names of all the dishes that appeared on the menu "Zentral Theater Terrace".
SQL: SELECT dish.name FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menu.name = 'Zentral Theater Terrace'
Database: menu
Note: highest price refers to MAX(price); Zentral Theater Terrace is a name of menu;
Question: Which dish has the highest price on the menu "Zentral Theater Terrace"? Please give its name.
SQL: SELECT dish.name FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menu.name = 'Zentral Theater Terrace' ORDER BY menuitem.price DESC LIMIT 1
Database: menu
Note: Zentral Theater Terrace is a name of menu;
Question: How many dishes are there on the menu "Zentral Theater Terrace"?
SQL: SELECT sum(CASE WHEN menu.name = 'Zentral Theater Terrace' THEN 1 ELSE 0 END) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id
Database: menu
Note: FALSE;
Question: How many dishes are there in total in the menus with the name "Waldorf Astoria"?
SQL: SELECT sum(CASE WHEN menu.name = 'Waldorf Astoria' THEN 1 ELSE 0 END) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id
Database: menu
Note: ids of the menus refers to menu_id; menus that are DIYs of the restaurant refers to sponsor is null; Clear green turtle is a name of dish;
Question: Please list the IDs of the menus that are DIYs of the restaurant and have the dish "Clear green turtle".
SQL: SELECT menupage.menu_id FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Clear green turtle' AND menu.sponsor IS NULL
Database: menu
Note: average page number = AVG(page_number); Clear green turtle is a name of dish;
Question: What is the average page number of the menus that have the dish "Clear green turtle"?
SQL: SELECT avg(menupage.page_number) FROM menupage INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Clear green turtle'
Database: menu
Note: average price = AVG(price); Zentral Theater Terrace refers to menu;
Question: What is the average price of the dishes on the menu "Zentral Theater Terrace"?
SQL: SELECT sum(menuitem.price) / count(menuitem.price) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id WHERE menu.name = 'Zentral Theater Terrace'
Database: menu
Note: created on 28th March 2011 refers to created_at like '2011-03-28%';
Question: How many menu items were created on 28th March 2011?
SQL: SELECT count(*) FROM menuitem WHERE created_at LIKE '2011-03-28%'
Database: menu
Note: FALSE;
Question: How many dishes are included in the menu page ID 144?
SQL: SELECT count(*) FROM menuitem WHERE menu_page_id = 144
Database: menu
Note: Dutcher House refers to location = 'Dutcher House';
Question: How many menus were used in Dutcher House?
SQL: SELECT count(*) FROM menu WHERE LOCATION = 'Dutcher House'
Database: menu
Note: appeared on a menu more than once refers to times_appeared > menus_appeared;
Question: How many dishes appeared on a menu more than once?
SQL: SELECT count(*) FROM dish WHERE times_appeared > menus_appeared
Database: menu
Note: steamship refers to venue = 'STEAMSHIP';
Question: How many menus were created for steamship?
SQL: SELECT count(*) FROM menu WHERE venue = 'STEAMSHIP'
Database: menu
Note: created on 17th November 1898 refers to date = '1898-11-17';
Question: How many pages were there on the menu created on 17th November 1898?
SQL: SELECT sum(CASE WHEN menu.date = '1898-11-17' THEN 1 ELSE 0 END) FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id
Database: menu
Note: FALSE;
Question: Name the dishes that were on the menu page ID 174.
SQL: SELECT dish.name FROM menuitem INNER JOIN dish ON dish.id = menuitem.dish_id WHERE menuitem.menu_page_id = 174
Database: menu
Note: first appeared in 1861 refers to first_appeared = 1861;
Question: List the names and menu page IDs of the dishes that first appeared in 1861.
SQL: SELECT dish.name, menuitem.dish_id FROM menuitem INNER JOIN dish ON dish.id = menuitem.dish_id WHERE dish.first_appeared = 1861
Database: menu
Note: highest prices of the dishes refers to MAX(price); created on 23rd May 2011 refers to created_at like '2011-05-23%';
Question: Among the dishes on menu page ID 7610, list the names and highest prices of the dishes in menu items that were created on 23rd May 2011.
SQL: SELECT dish.name, menuitem.price FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE menuitem.created_at LIKE '2011-05-23%' ORDER BY menuitem.price DESC LIMIT 1
Database: menu
Note: least in full height refers to MIN(full_height);
Question: List the dishes included on page number 30 with the least in full height.
SQL: SELECT dish.name FROM menupage INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menupage.page_number = 30 ORDER BY menupage.full_height DESC, menupage.full_height ASC LIMIT 1
Database: menu
Note: page ids refers to page_number; highest page count refers to MAX(page_count);
Question: Provide the page IDs and name of the menu which had the highest page count.
SQL: SELECT menupage.page_number, menu.name FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id ORDER BY menu.page_count DESC LIMIT 1
Database: menu
Note: menu with the most dishes refers to menu.id with MAX(dish_count); second page refers to page_number = 2;
Question: On the menu with the most dishes, how many dishes were there on its second page?
SQL: SELECT count(menuitem.dish_id) FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id WHERE menupage.page_number = 2 GROUP BY menu.name ORDER BY menu.dish_count DESC LIMIT 1
Database: menu
Note: Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);
Question: Provide the numbers of the menu item which includes Fresh lobsters in every style and location where that dish was used on a menu.
SQL: SELECT menupage.menu_id, menuitem.xpos, menuitem.ypos FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Fresh lobsters in every style'
Database: menu
Note: 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';
Question: List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM"s sponsored menu.
SQL: SELECT dish.name FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menu.sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM' AND menuitem.xpos < 0.25 AND menuitem.ypos < 0.25
Database: menu
Note: Cerealine with Milk is a name of dish;
Question: Provide the sponsor and event of the menu which includes Cerealine with Milk.
SQL: SELECT menu.name, menu.event FROM menuitem INNER JOIN menupage ON menuitem.menu_page_id = menupage.id INNER JOIN menu ON menupage.menu_id = menu.id INNER JOIN dish ON menuitem.dish_id = dish.id WHERE dish.name = 'Cerealine with Milk'
Database: menu
Note: 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;
Question: How many percent of Bluefish dishes are located at the center of the menu page?
SQL: SELECT cast(sum(CASE WHEN menuitem.xpos BETWEEN 0.25 AND 0.75 AND menuitem.ypos BETWEEN 0.25 AND 0.75 THEN 1 ELSE 0 END) AS REAL) * 100 / count(menuitem.id) FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.name LIKE '%BLuefish%'
Database: menu
Note: FALSE;
Question: Who is the sponsor of menu with ID 12463?
SQL: SELECT sponsor FROM menu WHERE id = 12463
Database: menu
Note: sponsored by the Republican House refers to sponsor = 'REPUBLICAN HOUSE';
Question: What is the event sponsored by the Republican House?
SQL: SELECT event FROM menu WHERE sponsor = 'REPUBLICAN HOUSE'
Database: menu
Note: place refers to location;
Question: Where is the place that menu with ID 12472 was created for?
SQL: SELECT LOCATION FROM menu WHERE id = 12472
Database: menu
Note: describe the menu physically refers to physical_description; sponsored by Noviomagus refers to sponsor = 'Noviomagus';
Question: Please describe the menu sponsored by Noviomagus physically.
SQL: SELECT physical_description FROM menu WHERE sponsor = 'Noviomagus'
Database: menu
Note: FALSE;
Question: What is the occasion for menu with ID 12463?
SQL: SELECT occasion FROM menu WHERE id = 12463
Database: menu
Note: sponsored by Norddeutscher Lloyd Bremen refers to sponsor = 'Norddeutscher Lloyd Bremen';
Question: List down the locations of menu sponsored by Norddeutscher Lloyd Bremen.
SQL: SELECT LOCATION FROM menu WHERE sponsor = 'Norddeutscher Lloyd Bremen'
Database: menu
Note: menu page ids refers to menupage.id; sponsored by Occidental & Oriental refers to sponsor = 'Occidental & Oriental';
Question: List down the menu page IDs for menu sponsored by Occidental & Oriental?
SQL: SELECT menu.id FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id WHERE menu.sponsor = 'Occidental & Oriental'
Database: menu
Note: located at Manhattan Hotel refers to location = 'Manhattan Hotel';
Question: List down the image IDs for menu located at Manhattan Hotel.
SQL: SELECT menupage.image_id FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id WHERE menu.location = 'Manhattan Hotel'
Database: menu
Note: width refers to full_width; El Fuerte Del Palmar is a name of menu;
Question: State the full height and width for menu called "El Fuerte Del Palmar".
SQL: SELECT menupage.full_height, menupage.full_width FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id WHERE menu.name = 'El Fuerte Del Palmar'
Database: menu
Note: 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 The Biltmore; The Biltmore is a name of menu;
Question: Is "c02c9a3b-6881-7080-e040-e00a180631aa" the uuid for menu called "The Biltmore"?
SQL: SELECT CASE WHEN menupage.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa' THEN 'yes' ELSE 'no' END AS yn FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id WHERE menu.name = 'The Biltmore' AND menupage.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa'
Database: menu
Note: longest full height refers to MAX(full_height);
Question: State the name of menu with the longest full height.
SQL: SELECT menu.name FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id ORDER BY menupage.full_height DESC LIMIT 1
Database: menu
Note: page id of 130 refers menupage.id = 130;
Question: What is the page count for menu with page ID of 130?
SQL: SELECT menu.page_count FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id WHERE menupage.id = 130
Database: menu
Note: FALSE;
Question: How much is the price of menu with image ID 4000009194?
SQL: SELECT menuitem.price FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id WHERE menupage.image_id = 4000009194
Database: menu
Note: on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;
Question: List down the page numbers for menu with dishes on the right upper corner.
SQL: SELECT menupage.page_number FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id WHERE menuitem.xpos > 0.75 AND menuitem.ypos < 0.25
Database: menu
Note: created in April refers to SUBSTR(created_at, 7, 1) = '4';
Question: List down the name of dishes from menu created in April.
SQL: SELECT dish.name FROM menuitem INNER JOIN dish ON dish.id = menuitem.dish_id WHERE substr(menuitem.created_at, 7, 1) = '4'
Database: menu
Note: FALSE;
Question: List down name of dishes from menu with menu page ID 1389.
SQL: SELECT dish.name FROM menuitem INNER JOIN dish ON dish.id = menuitem.dish_id WHERE menuitem.menu_page_id = 1389
Database: menu
Note: highest price refers to MAX(price); menu item id 1 to 5 refers to menuitem.id BETWEEN 1 AND 5;
Question: What is the highest price of dishes with menu item ID 1 to 5?
SQL: SELECT menuitem.price FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE menuitem.id BETWEEN 1 AND 5 ORDER BY menuitem.price DESC LIMIT 1
Database: menu
Note: positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;
Question: List down the name of dishes that were positioned on the left upper corner.
SQL: SELECT dish.name FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE menuitem.xpos < 0.25 AND menuitem.ypos < 0.25
Database: menu
Note: 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');
Question: Calculate the total dish count for menu with uuid of "510d47e4-2958-a3d9-e040-e00a18064a99" & "510d47e4-295a-a3d9-e040-e00a18064a99".
SQL: SELECT sum(CASE WHEN menupage.uuid = '510d47e4-2958-a3d9-e040-e00a18064a99' THEN menu.dish_count ELSE 0 END) - sum(CASE WHEN menupage.uuid = '510d47e4-295a-a3d9-e040-e00a18064a99' THEN menu.dish_count ELSE 0 END) FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id
Database: menu
Note: total price = SUM(price);
Question: Calculate the total price of items for menu with ID 12882.
SQL: SELECT sum(menuitem.price) FROM menupage INNER JOIN menuitem ON menupage.id = menuitem.menu_page_id WHERE menupage.menu_id = 12882
Database: menu
Note: highest price refers to MAX(highest_price);
Question: List the top five dishes, by descending order, in terms of highest price.
SQL: SELECT name FROM dish ORDER BY highest_price DESC LIMIT 5
Database: menu
Note: free refers to lowest_price = 0;
Question: Among the dishes, how many of them are for free?
SQL: SELECT count(*) FROM dish WHERE lowest_price = 0
Database: menu
Note: first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;
Question: What dishes made their first and last appearances in 1855 and 1900, respectively?
SQL: SELECT name FROM dish WHERE first_appeared = 1855 AND last_appeared = 1900
Database: menu
Note: highest dish count refers to MAX(dish_count);
Question: Write down the top ten menus with the highest dish count.
SQL: SELECT name FROM menu GROUP BY name ORDER BY dish_count DESC LIMIT 10
Database: menu
Note: appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;
Question: How many dishes appear in the right upper corner of the menu page?
SQL: SELECT count(*) FROM menuitem INNER JOIN dish ON menuitem.dish_id = dish.id WHERE menuitem.xpos > 0.75 AND menuitem.ypos < 0.25
Database: menu
Note: 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;
Question: How long has the "Clear Green Turtle" dish appeared on the menu, and tell me when its latest update was?
SQL: SELECT dish.last_appeared - dish.first_appeared, menuitem.updated_at FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.name = 'Clear green turtle'
Database: menu
Note: appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;
Question: Tally the dishes that have appeared on the menu for more than 100 years.
SQL: SELECT dish.name FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.last_appeared - dish.first_appeared > 100
Database: menu
Note: appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;
Question: How many dishes have appeared on the menu in less than 5 years?
SQL: SELECT count(*) FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.last_appeared - dish.first_appeared < 5
Database: menu
Note: dishes that were free refers to lowest_price = 0;
Question: Give me the name and menu price of dishes that were free.
SQL: SELECT dish.name, menuitem.price FROM menuitem INNER JOIN dish ON dish.id = menuitem.dish_id WHERE dish.lowest_price = 0
Database: menu
Note: page 2 refers to page_number = 2;
Question: How much does the dish on page 2 of menu ID 12474 cost?
SQL: SELECT menuitem.price FROM menuitem INNER JOIN menupage ON menupage.id = menuitem.menu_page_id WHERE menupage.menu_id = 12474 AND menupage.page_number = 2
Database: menu
Note: 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';
Question: 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.
SQL: SELECT sum(CASE WHEN menuitem.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 INNER JOIN menuitem ON dish.id = menuitem.dish_id
Database: menu
Note: image full height is more than 10000 mm refers to full_height > 10000;
Question: Who are the sponsors of the menu whose image full height is more than 10000 mm?
SQL: SELECT menu.sponsor FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id WHERE menupage.full_height = 10000
Database: menu
Note: FALSE;
Question: 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.
SQL: SELECT menupage.image_id, menupage.full_height, menupage.full_width FROM menupage INNER JOIN menu ON menu.id = menupage.menu_id WHERE menu.event = '100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER'
Database: menu
Note: full width less than 2000 mm refers to full_width < 2000;
Question: Under what events was the menu page's full width less than 2000 mm?
SQL: SELECT menu.event FROM menu INNER JOIN menupage ON menu.id = menupage.menu_id WHERE menupage.full_width = 2000
Database: menu
Note: cost 180,000 refers to price = 180000;
Question: Name the dishes that cost 180,000.
SQL: SELECT dish.name FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE menuitem.price = 180000
Database: menu
Note: position coordinate = xpos, ypos; Small Hominy is a name of dish; how long it appear = SUBTRACT(last_appeared, first_appeared);
Question: What is the position coordinate on the page menu of the "Small Hominy" dish and how long did it appear?
SQL: SELECT menuitem.xpos, menuitem.ypos, dish.last_appeared - dish.first_appeared FROM dish INNER JOIN menuitem ON dish.id = menuitem.dish_id WHERE dish.name = 'Small Hominy'