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: Please list the prices of the dish "Clear green turtle" on every menu page it appeared on.
Evidence: Clear green turtle is a name of dish;
SQL: SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle'
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 all the menu pages with the appearance of the dish "Clear green turtle", how many of them have the dish at a stable price?
Evidence: Clear green turtle is a name of dish; stable price refers to highest_price is null;
SQL: SELECT SUM(CASE WHEN T1.name = 'Clear green turtle' 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
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 highest price of the dish "Clear green turtle" on a menu page?
Evidence: highest price refers to MAX(Price); Clear green turtle is a name of dish;
SQL: SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle' 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: Please list the IDs of all the menus in which the dish "Clear green turtle" had appeared.
Evidence: Clear green turtle is a name of dish;
SQL: SELECT T1.menu_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 = 'Clear green turtle'
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 in which the dish "Clear green turtle" had appeared, how many of them used the dollar as their currency?
Evidence: Clear green turtle is a name of dish; dollar as currency refers to currency = 'Dollars';
SQL: SELECT SUM(CASE WHEN T3.currency = 'Dollars' THEN 1 ELSE 0 END) 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 = 'Clear green turtle'
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 in which the dish "Clear green turtle" had appeared, how many of them did not support taking out or booking in advance?
Evidence: Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;
SQL: SELECT SUM(CASE WHEN T4.name = 'Clear green turtle' THEN 1 ELSE 0 END) 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.call_number 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: Please list the names of all the dishes that appeared on the menu "Zentral Theater Terrace".
Evidence: Zentral Theater Terrace is a name of menu;
SQL: 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.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: Which dish has the highest price on the menu "Zentral Theater Terrace"? Please give its name.
Evidence: highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;
SQL: 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.name = 'Zentral Theater Terrace' 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: How many dishes are there on the menu "Zentral Theater Terrace"?
Evidence: Zentral Theater Terrace is a name of menu;
SQL: SELECT SUM(CASE WHEN T3.name = 'Zentral Theater Terrace' THEN 1 ELSE 0 END) 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
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 in total in the menus with the name "Waldorf Astoria"?
Evidence: FALSE;
SQL: SELECT SUM(CASE WHEN T3.name = 'Waldorf Astoria' THEN 1 ELSE 0 END) 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
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 the menus that are DIYs of the restaurant and have the dish "Clear green turtle".
Evidence: 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;
SQL: SELECT T2.menu_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 T4.name = 'Clear green turtle' AND T3.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: What is the average page number of the menus that have the dish "Clear green turtle"?
Evidence: average page number = AVG(page_number); Clear green turtle is a name of dish;
SQL: SELECT AVG(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 = 'Clear green turtle'
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 price of the dishes on the menu "Zentral Theater Terrace"?
Evidence: average price = AVG(price); Zentral Theater Terrace refers to menu;
SQL: SELECT SUM(T1.price) / COUNT(T1.price) 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 T3.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: How many menu items were created on 28th March 2011?
Evidence: created on 28th March 2011 refers to created_at like '2011-03-28%';
SQL: SELECT COUNT(*) FROM MenuItem WHERE created_at LIKE '2011-03-28%'
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 included in the menu page ID 144?
Evidence: FALSE;
SQL: SELECT COUNT(*) FROM MenuItem WHERE menu_page_id = 144
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 used in Dutcher House?
Evidence: Dutcher House refers to location = 'Dutcher House';
SQL: SELECT COUNT(*) FROM Menu WHERE location = 'Dutcher House'
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 appeared on a menu more than once?
Evidence: appeared on a menu more than once refers to times_appeared > menus_appeared;
SQL: SELECT COUNT(*) FROM Dish WHERE times_appeared > menus_appeared
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 steamship?
Evidence: steamship refers to venue = 'STEAMSHIP';
SQL: SELECT COUNT(*) FROM Menu WHERE venue = 'STEAMSHIP'
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 pages were there on the menu created on 17th November 1898?
Evidence: created on 17th November 1898 refers to date = '1898-11-17';
SQL: SELECT SUM(CASE WHEN T1.date = '1898-11-17' THEN 1 ELSE 0 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: Name the dishes that were on the menu page ID 174.
Evidence: FALSE;
SQL: SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.menu_page_id = 174
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 names and menu page IDs of the dishes that first appeared in 1861.
Evidence: first appeared in 1861 refers to first_appeared = 1861;
SQL: SELECT T2.name, T1.dish_id FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.first_appeared = 1861
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 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.
Evidence: highest prices of the dishes refers to MAX(price); created on 23rd May 2011 refers to created_at like '2011-05-23%';
SQL: SELECT T1.name, T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.created_at LIKE '2011-05-23%' 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: List the dishes included on page number 30 with the least in full height.
Evidence: least in full height refers to MIN(full_height);
SQL: 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.page_number = 30 ORDER BY T1.full_height DESC, T1.full_height ASC LIMIT 1