db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
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' | 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. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place... | provide the numbers of the menu item which includes fresh lobsters in every style and location where that dish was used on a menu. |
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 | Question: list the dishes that appeared at the left upper corner of the chas.bradley's oyster & dining room's sponsored menu. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_desc... | list the dishes that appeared at the left upper corner of the chas.bradley's oyster & dining room's sponsored menu. |
menu | 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' | Question: provide the sponsor and event of the menu which includes cerealine with milk. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number,... | provide the sponsor and event of the menu which includes cerealine with milk. |
menu | 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%' | Question: how many percent of bluefish dishes are located at the center of the menu page? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_numbe... | how many percent of bluefish dishes are located at the center of the menu page? |
menu | select sponsor from menu where id = 12463 | Question: who is the sponsor of menu with id 12463? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, location,... | who is the sponsor of menu with id 12463? |
menu | select event from menu where sponsor = 'republican house' | Question: what is the event sponsored by the republican house? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date... | what is the event sponsored by the republican house? |
menu | select location from menu where id = 12472 | Question: where is the place that menu with id 12472 was created for? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, languag... | where is the place that menu with id 12472 was created for? |
menu | select physical_description from menu where sponsor = 'noviomagus' | Question: please describe the menu sponsored by noviomagus physically. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, langua... | please describe the menu sponsored by noviomagus physically. |
menu | select occasion from menu where id = 12463 | Question: what is the occasion for menu with id 12463? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, locati... | what is the occasion for menu with id 12463? |
menu | select location from menu where sponsor = 'norddeutscher lloyd bremen' | Question: list down the locations of menu sponsored by norddeutscher lloyd bremen. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyw... | list down the locations of menu sponsored by norddeutscher lloyd bremen. |
menu | select t2.id from menupage as t1 inner join menu as t2 on t2.id = t1.menu_id where t2.sponsor = 'occidental & oriental' | Question: list down the menu page ids for menu sponsored by occidental & oriental? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyw... | list down the menu page ids for menu sponsored by occidental & oriental? |
menu | select t1.image_id from menupage as t1 inner join menu as t2 on t2.id = t1.menu_id where t2.location = 'manhattan hotel' | Question: list down the image ids for menu located at manhattan hotel. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, langua... | list down the image ids for menu located at manhattan hotel. |
menu | 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' | Question: state the full height and width for menu called 'el fuerte del palmar'. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywo... | state the full height and width for menu called 'el fuerte del palmar'. |
menu | 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' | Question: is 'c02c9a3b-6881-7080-e040-e00a180631aa' the uuid for menu called 'the biltmore'? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_nu... | is 'c02c9a3b-6881-7080-e040-e00a180631aa' the uuid for menu called 'the biltmore'? |
menu | 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 | Question: state the name of menu with the longest full height. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date... | state the name of menu with the longest full height. |
menu | select t1.page_count from menu as t1 inner join menupage as t2 on t1.id = t2.menu_id where t2.id = 130 | Question: what is the page count for menu with page id of 130? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date... | what is the page count for menu with page id of 130? |
menu | 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 | Question: how much is the price of menu with image id 4000009194? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, d... | how much is the price of menu with image id 4000009194? |
menu | 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 | Question: list down the page numbers for menu with dishes on the right upper corner. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, ke... | list down the page numbers for menu with dishes on the right upper corner. |
menu | 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' | Question: list down the name of dishes from menu created in april. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, ... | list down the name of dishes from menu created in april. |
menu | select t2.name from menuitem as t1 inner join dish as t2 on t2.id = t1.dish_id where t1.menu_page_id = 1389 | Question: list down name of dishes from menu with menu page id 1389. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language... | list down name of dishes from menu with menu page id 1389. |
menu | 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 | Question: what is the highest price of dishes with menu item id 1 to 5? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, langu... | what is the highest price of dishes with menu item id 1 to 5? |
menu | 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 | Question: list down the name of dishes that were positioned on the left upper corner. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, k... | list down the name of dishes that were positioned on the left upper corner. |
menu | 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 | Question: calculate the total dish count for menu with uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' & '510d47e4-295a-a3d9-e040-e00a18064a99'. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, pl... | calculate the total dish count for menu with uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' & '510d47e4-295a-a3d9-e040-e00a18064a99'. |
menu | 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 | Question: calculate the total price of items for menu with id 12882. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language... | calculate the total price of items for menu with id 12882. |
menu | select name from dish order by highest_price desc limit 5 | Question: list the top five dishes, by descending order, in terms of highest price. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, key... | list the top five dishes, by descending order, in terms of highest price. |
menu | select count(*) from dish where lowest_price = 0 | Question: among the dishes, how many of them are for free? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, lo... | among the dishes, how many of them are for free? |
menu | select name from dish where first_appeared = 1855 and last_appeared = 1900 | Question: what dishes made their first and last appearances in 1855 and 1900, respectively? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_num... | what dishes made their first and last appearances in 1855 and 1900, respectively? |
menu | select name from menu group by name order by dish_count desc limit 10 | Question: write down the top ten menus with the highest dish count. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language,... | write down the top ten menus with the highest dish count. |
menu | 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 | Question: how many dishes appear in the right upper corner of the menu page? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, ... | how many dishes appear in the right upper corner of the menu page? |
menu | 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' | Question: how long has the 'clear green turtle' dish appeared on the menu, and tell me when its latest update was? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, oc... | how long has the 'clear green turtle' dish appeared on the menu, and tell me when its latest update was? |
menu | 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 | Question: tally the dishes that have appeared on the menu for more than 100 years. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyw... | tally the dishes that have appeared on the menu for more than 100 years. |
menu | 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 | Question: how many dishes have appeared on the menu in less than 5 years? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, lan... | how many dishes have appeared on the menu in less than 5 years? |
menu | 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 | Question: give me the name and menu price of dishes that were free. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language,... | give me the name and menu price of dishes that were free. |
menu | 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 | Question: how much does the dish on page 2 of menu id 12474 cost? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, d... | how much does the dish on page 2 of menu id 12474 cost? |
menu | 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 | 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. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_descr... | 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. |
menu | select t2.sponsor from menupage as t1 inner join menu as t2 on t2.id = t1.menu_id where t1.full_height = 10000 | Question: who are the sponsors of the menu whose image full height is more than 10000 mm? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_numbe... | who are the sponsors of the menu whose image full height is more than 10000 mm? |
menu | 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' | 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. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, ve... | 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. |
menu | select t1.event from menu as t1 inner join menupage as t2 on t1.id = t2.menu_id where t2.full_width = 2000 | Question: under what events was the menu page's full width less than 2000 mm? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords,... | under what events was the menu page's full width less than 2000 mm? |
menu | select t1.name from dish as t1 inner join menuitem as t2 on t1.id = t2.dish_id where t2.price = 180000 | Question: name the dishes that cost 180,000. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, location, locati... | name the dishes that cost 180,000. |
menu | 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' | Question: what is the position coordinate on the page menu of the 'small hominy' dish and how long did it appear? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occ... | what is the position coordinate on the page menu of the 'small hominy' dish and how long did it appear? |
menu | 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' | Question: 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. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event... | 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. |
menu | select count(*) from dish where times_appeared > dish.menus_appeared | Question: how many dishes appeared more than once on a menu? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, ... | how many dishes appeared more than once on a menu? |
menu | select count(*) from menu where date like '2015-04%' and sponsor = 'krogs fiskerestaurant' | Question: how many menus sponsored by krogs fiske restaurant were created in april 2015? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number... | how many menus sponsored by krogs fiske restaurant were created in april 2015? |
menu | select name from dish order by last_appeared - dish.first_appeared desc limit 1 | Question: which dish has the longest history? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, location, locat... | which dish has the longest history? |
menu | select event from menu where date = '1887-07-21' and id = 21380 | Question: on 1887-07-21, what was the event that lead to the creation of menu id 21380? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number,... | on 1887-07-21, what was the event that lead to the creation of menu id 21380? |
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 | Question: how many pages are there in the 'emil kuehn' menu? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, ... | how many pages are there in the 'emil kuehn' menu? |
menu | 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 | Question: how many menus include puree of split peas aux croutons? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, ... | how many menus include puree of split peas aux croutons? |
menu | 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 | Question: what are the names of the dishes with a stable price that were created in april of 2011? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, c... | what are the names of the dishes with a stable price that were created in april of 2011? |
menu | 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 | Question: what is the name of the menu with the highest number of pages? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, lang... | what is the name of the menu with the highest number of pages? |
menu | 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' | Question: provide the menu page ids of all the menu that includes mashed potatoes. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyw... | provide the menu page ids of all the menu that includes mashed potatoes. |
menu | 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 | Question: among the menus sponsored by pacific mail steamship company, how many menus have no more than 2 pages? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occa... | among the menus sponsored by pacific mail steamship company, how many menus have no more than 2 pages? |
menu | 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 | Question: among the menus that include milk, what is the menu page id of the menu that has the highest price? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasio... | among the menus that include milk, what is the menu page id of the menu that has the highest price? |
menu | 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 | Question: what is the menu id of the menu sponsored by occidental and oriental steamship company with the highest number of pages? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical... | what is the menu id of the menu sponsored by occidental and oriental steamship company with the highest number of pages? |
menu | 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' | Question: list the positions of the dish 'breaded veal cutlet with peas' on every menu where it appeared. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, n... | list the positions of the dish 'breaded veal cutlet with peas' on every menu where it appeared. |
menu | 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 | Question: what are the names of the dishes shown in the lower right corner of menu page 48706? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_... | what are the names of the dishes shown in the lower right corner of menu page 48706? |
menu | 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' | 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? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. 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? |
menu | 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 | Question: among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description... | among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price? |
menu | 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 | 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. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sp... | 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. |
menu | select id from menu where sponsor is null | Question: please list the ids of all the menus that are diys of the restaurant. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyword... | please list the ids of all the menus that are diys of the restaurant. |
menu | select count(*) from menu where event = 'lunch' | Question: how many menus were created for lunch? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date, location, lo... | how many menus were created for lunch? |
menu | select count(*) from menu where page_count > 10 and dish_count > 20 | Question: among the menus with over 10 pages, how many of them have over 20 dishes? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, key... | among the menus with over 10 pages, how many of them have over 20 dishes? |
menu | select id from menu order by dish_count desc limit 1 | Question: what is the id of the menu with the most number of dishes? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language... | what is the id of the menu with the most number of dishes? |
menu | select count(*) from menu where name = 'zentral theater terrace' | Question: how many dishes are there on the menu 'zentral theater terrace'? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, la... | how many dishes are there on the menu 'zentral theater terrace'? |
menu | select count(*) from menu where call_number is null and strftime('%y', date) < '1950' | Question: among the menus that did not support taking out or booking in advance, how many of them were created before 1950? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_descri... | among the menus that did not support taking out or booking in advance, how many of them were created before 1950? |
menu | 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 | Question: what is the image id of page 1 of the menu 'zentral theater terrace'? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyword... | what is the image id of page 1 of the menu 'zentral theater terrace'? |
menu | select t1.name from menu as t1 inner join menupage as t2 on t1.id = t2.menu_id where t2.image_id = 5189412 | Question: to which menu does the menu page image id5189412 belong? please give its name. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number... | to which menu does the menu page image id5189412 belong? please give its name. |
menu | 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 | Question: which menu page has a bigger width, page 1 of 'zentral theater terrace' or page 1 of 'young's hotel'? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occas... | which menu page has a bigger width, page 1 of 'zentral theater terrace' or page 1 of 'young's hotel'? |
menu | 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 | Question: which menu page of 'ritz carlton' has the biggest height? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language,... | which menu page of 'ritz carlton' has the biggest height? |
menu | 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 | Question: among the menu pages of 'ritz carlton', how many of them have a width of over 1000? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_n... | among the menu pages of 'ritz carlton', how many of them have a width of over 1000? |
menu | 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 | Question: how many dishes are there on page 1 of menu id12882? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, language, date... | how many dishes are there on page 1 of menu id12882? |
menu | 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 | Question: please list the names of all the dishes on page 1 of menu id12882. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords, ... | please list the names of all the dishes on page 1 of menu id12882. |
menu | 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' | Question: please list the page numbers of all the menu pages on which the dish 'chicken gumbo' had appeared. | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion... | please list the page numbers of all the menu pages on which the dish 'chicken gumbo' had appeared. |
menu | 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 | Question: among the menu pages on which the dish 'chicken gumbo' had appeared, what is the menu id of the one with the biggest width? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physi... | among the menu pages on which the dish 'chicken gumbo' had appeared, what is the menu id of the one with the biggest width? |
menu | 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 | Question: for how many times had the dish 'chicken gumbo' appeared on a menu page? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyw... | for how many times had the dish 'chicken gumbo' appeared on a menu page? |
menu | 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 | Question: among the menu pages on which the dish 'paysanne soup' had appeared, how many of them had a stable price for the dish? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_d... | among the menu pages on which the dish 'paysanne soup' had appeared, how many of them had a stable price for the dish? |
menu | 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 | Question: what is the highest price of the dish 'chicken gumbo' on a menu page? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keyword... | what is the highest price of the dish 'chicken gumbo' on a menu page? |
menu | 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 | Question: how much space does page 1 of the menu 'zentral theater terrace' cover? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywo... | how much space does page 1 of the menu 'zentral theater terrace' cover? |
menu | 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 | Question: what is the average number of dishes per menu page of menu id12882? | Tables: Dish -> id, name, description, menus_appeared, times_appeared, first_appeared, last_appeared, lowest_price, highest_price. Menu -> id, name, sponsor, event, venue, place, physical_description, occasion, notes, call_number, keywords,... | what is the average number of dishes per menu page of menu id12882? |
shipping | 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' | Question: how many shipments were ordered by s k l enterprises inc in 2017? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck... | how many shipments were ordered by s k l enterprises inc in 2017? |
shipping | 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' | Question: what is the total number of pounds being transported for s k l enterprises inc? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code... | what is the total number of pounds being transported for s k l enterprises inc? |
shipping | 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' | Question: among the shipments done by sue newell, how many of them are for s k l enterprises inc? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, ... | among the shipments done by sue newell, how many of them are for s k l enterprises inc? |
shipping | 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' | Question: how many shipments were ordered by a customer in florida? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truc... | how many shipments were ordered by a customer in florida? |
shipping | 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' | Question: please list the ids of all the shipments made by a retailer customer. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. t... | please list the ids of all the shipments made by a retailer customer. |
shipping | 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 | Question: among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_... | among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000? |
shipping | 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' | Question: how many shipments in 2017 were done by sue newell? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, ... | how many shipments in 2017 were done by sue newell? |
shipping | 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 | Question: what is the full name of the driver that has done the most shipments in 2017? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ... | what is the full name of the driver that has done the most shipments in 2017? |
shipping | 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' | Question: among the shipments in 2017, how many of them have the destination in new jersey? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_co... | among the shipments in 2017, how many of them have the destination in new jersey? |
shipping | 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' | Question: what is the maximum weight being transported to new york during a single shipment? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_c... | what is the maximum weight being transported to new york during a single shipment? |
shipping | 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 | Question: how much more pounds in total were transported to new york than to chicago? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ph... | how much more pounds in total were transported to new york than to chicago? |
shipping | 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' | Question: please list the destination cities of all the shipments ordered by s k l enterprises inc. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state... | please list the destination cities of all the shipments ordered by s k l enterprises inc. |
shipping | 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' | Question: what is the average weight of the goods being transported on a single shipment ordered by s k l enterprises inc? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_nam... | what is the average weight of the goods being transported on a single shipment ordered by s k l enterprises inc? |
shipping | 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' | Question: among all the shipments to florida, what is the percentage of the shipment to jacksonville? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, sta... | among all the shipments to florida, what is the percentage of the shipment to jacksonville? |
shipping | select t1.make from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = 1045 | Question: state the headquarter of the truck which completed shipment no.1045. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tr... | state the headquarter of the truck which completed shipment no.1045. |
shipping | 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 | Question: how many shipments were delivered by the oldest truck model? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> t... | how many shipments were delivered by the oldest truck model? |
shipping | 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' | Question: who was the customer of shipment no.1275? give the customer's name. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tru... | who was the customer of shipment no.1275? give the customer's name. |
shipping | 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' | Question: where was the destination city of shipment no.1701? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, ... | where was the destination city of shipment no.1701? |
shipping | 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' | Question: give the name of the driver of shipment no.1021. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, mak... | give the name of the driver of shipment no.1021. |
shipping | 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' | Question: tell the name of the driver who received the shipment on 2017/11/5. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tru... | tell the name of the driver who received the shipment on 2017/11/5. |
shipping | select t2.population from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t1.ship_id = '1398' | Question: show the population of the city which was the destination of shipment no.1398. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code,... | show the population of the city which was the destination of shipment no.1398. |
shipping | 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' | Question: provide the ship date of the first shipment to customers in south carolina. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ph... | provide the ship date of the first shipment to customers in south carolina. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.