1sf/bird-sql-train-with-schema huggingface dataset:
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Provide the page IDs and name of the menu which had the highest page count.
Evidence: page IDs refers to page_number; highest page count refers to MAX(page_count);
SQL: SELECT T1.page_number, T2.name FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id ORDER BY T2.page_count DESC LIMIT 1
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: On the menu with the most dishes, how many dishes were there on its second page?
Evidence: menu with the most dishes refers to menu.id with MAX(dish_count); second page refers to page_number = 2;
SQL: 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 WHERE T2.page_number = 2 GROUP BY T3.name ORDER BY T3.dish_count DESC LIMIT 1
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menus sponsored by Pacific Mail Steamship Company, how many menus have no more than 2 pages?
Evidence: sponsored by Pacific Mail Steamship Company refers to sponsor = 'PACIFIC MAIL STEAMSHIP COMPANY'; no more than 2 pages refers to COUNT(page_number) < = 2;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menus that include milk, what is the menu page id of the menu that has the highest price?
Evidence: milk is a name of dish; highest price refers to MAX(price);
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: What is the menu id of the menu sponsored by Occidental and Oriental Steamship Company with the highest number of pages?
Evidence: sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: List the positions of the dish "breaded veal cutlet with peas" on every menu where it appeared.
Evidence: positions = xpos, ypos; breaded veal cutlet with peas is a name of dish;
SQL: 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'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: What are the names of the dishes shown in the lower right corner of menu page 48706?
Evidence: shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: 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?
Evidence: 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';
SQL: 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'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price?
Evidence: baked apples with cream is a name of dish; highest price refers to MAX(price);
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: 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.
Evidence: 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));
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Please list the IDs of all the menus that are DIYs of the restaurant.
Evidence: menus that are DIYs of the restaurant refers to sponsor is null;
SQL: SELECT id FROM Menu WHERE sponsor IS NULL
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: How many menus were created for lunch?
Evidence: created for lunch refers to event = 'LUNCH';
SQL: SELECT COUNT(*) FROM Menu WHERE event = 'LUNCH'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menus with over 10 pages, how many of them have over 20 dishes?
Evidence: menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;
SQL: SELECT COUNT(*) FROM Menu WHERE page_count > 10 AND dish_count > 20
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: What is the ID of the menu with the most number of dishes?
Evidence: most number of dishes refers to MAX(COUNT(dish_count));
SQL: SELECT id FROM Menu ORDER BY dish_count DESC LIMIT 1
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: How many dishes are there on the menu "Zentral Theater Terrace"?
Evidence: Zentral Theater Terrace is a name of menu;
SQL: SELECT COUNT(*) FROM Menu WHERE name = 'Zentral Theater Terrace'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menus that did not support taking out or booking in advance, how many of them were created before 1950?
Evidence: did not support taking out or booking in advance refers to call_number is null; created before 1950 refers to strftime('%Y', date) < '1950';
SQL: SELECT COUNT(*) FROM Menu WHERE call_number IS NULL AND strftime('%Y', date) < '1950'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: What is the image ID of page 1 of the menu "Zentral Theater Terrace"?
Evidence: page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: To which menu does the menu page image ID5189412 belong? Please give its name.
Evidence: FALSE;
SQL: SELECT T1.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.image_id = 5189412
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Which menu page has a bigger width, page 1 of "Zentral Theater Terrace" or page 1 of "Young's Hotel"?
Evidence: 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 WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Which menu page of "Ritz Carlton" has the biggest height?
Evidence: Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menu pages of "Ritz Carlton", how many of them have a width of over 1000?
Evidence: Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: How many dishes are there on page 1 of menu ID12882?
Evidence: page 1 refers to page_number = 1;
SQL: 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