QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    Name the dishes that cost 180,000. cost 180,000 refers to price = 180000;

    【Evidence】
    cost 180,000 refers to price = 180000;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.price = 180000
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    What is the position coordinate on the page menu of the "Small Hominy" dish and how long did it appear? position coordinate = xpos, ypos; Small Hominy is a name of dish; how long it appear = SUBTRACT(last_appeared, first_appeared);

    【Evidence】
    position coordinate = xpos, ypos; Small Hominy is a name of dish; how long it appear = SUBTRACT(last_appeared, first_appeared);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【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. image area = MULTIPLY(full_height, full_width);

    【Evidence】
    image area = MULTIPLY(full_height, full_width);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    How many dishes appeared more than once on a menu? appeared more than once on a menu refers to times_appeared > menus_appeared;

    【Evidence】
    appeared more than once on a menu refers to times_appeared > menus_appeared;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM Dish WHERE times_appeared > Dish.menus_appeared
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    How many menus sponsored by Krogs Fiske Restaurant were created in April 2015? sponsored by Krogs Fiske Restaurant refers to sponsor = 'Krogs Fiskerestaurant'; created in April 2015 refers to date like '2015-04%';

    【Evidence】
    sponsored by Krogs Fiske Restaurant refers to sponsor = 'Krogs Fiskerestaurant'; created in April 2015 refers to date like '2015-04%';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM Menu WHERE date LIKE '2015-04%' AND sponsor = 'Krogs Fiskerestaurant'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    Which dish has the longest history? longest history refers to MAX(SUBTRACT(last_appeared, first_appeared));

    【Evidence】
    longest history refers to MAX(SUBTRACT(last_appeared, first_appeared));

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT name FROM Dish ORDER BY last_appeared - Dish.first_appeared DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    On 1887-07-21, what was the event that lead to the creation of menu id 21380? On 1887-07-21 refers to date = '1887-07-21';

    【Evidence】
    On 1887-07-21 refers to date = '1887-07-21';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT event FROM Menu WHERE date = '1887-07-21' AND id = 21380
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 menu
【Schema】
# Table: Menu
[
(id:INTEGER, Primary Key, Examples: [12463, 12464, 12465]),
(name:TEXT, Examples: [The Modern, Restaurant, El Fuerte Del Palmar]),
(sponsor:TEXT, Examples: [HOTEL EASTMAN]),
(event:TEXT, Examples: [BREAKFAST, [DINNER], FRUHSTUCK/BREAKFAST;]),
(venue:TEXT, Examples: [COMMERCIAL, SOC;, EDUC;]),
(place:TEXT, Examples: [HOT SPRINGS, AR]),
(physical_description:TEXT, Examples: [CARD; 4.75X7.5;]),
(occasion:TEXT, Examples: [EASTER;, ANNIVERSARY;, DAILY;]),
(notes:TEXT),
(call_number:TEXT, Examples: [1900-2822, 1900-2825, 1900-2827]),
(keywords:TEXT),
(language:TEXT),
(date:DATE, Examples: [1900-04-15]),
(location:TEXT, Examples: [Hotel Eastman]),
(location_type:TEXT),
(currency:TEXT, Examples: [Dollars, Cents, Francs]),
(currency_symbol:TEXT, Examples: [$, c, FF]),
(status:TEXT, Examples: [complete]),
(page_count:INTEGER, Examples: [2, 4, 12]),
(dish_count:INTEGER, Examples: [67, 34, 84])
]
# Table: MenuItem
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(menu_page_id:INTEGER, Examples: [1389, 3079, 1388]),
(price:REAL, Examples: [0.4, 0.6, 0.5]),
(high_price:REAL, Examples: [1.0, 3.0, 1.5]),
(dish_id:INTEGER, Examples: [1, 2, 3]),
(created_at:TEXT, Examples: [2011-03-28 15:00:44 UTC]),
(updated_at:TEXT, Examples: [2011-04-19 04:33:15 UTC]),
(xpos:REAL, Examples: [0.111429, 0.438571, 0.14]),
(ypos:REAL, Examples: [0.254735, 0.261922, 0.26272])
]
# Table: Dish
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Consomme printaniere royal]),
(description:TEXT),
(menus_appeared:INTEGER, Examples: [8, 111, 14]),
(times_appeared:INTEGER, Examples: [8, 117, 14]),
(first_appeared:INTEGER, Examples: [1897, 1895, 1893]),
(last_appeared:INTEGER, Examples: [1927, 1960, 1917]),
(lowest_price:REAL, Examples: [0.2, 0.1, 0.25]),
(highest_price:REAL, Examples: [0.4, 0.8, 1.0])
]
# Table: MenuPage
[
(id:INTEGER, Primary Key, Examples: [119, 120, 121]),
(menu_id:INTEGER, Examples: [12460, 12461, 12462]),
(page_number:INTEGER, Examples: [1, 2, 3]),
(image_id:REAL, Examples: [1603595.0, 1603596.0, 1603597.0]),
(full_height:INTEGER, Examples: [7230, 5428, 3074]),
(full_width:INTEGER, Examples: [5428, 7230, 2046]),
(uuid:TEXT, Examples: [510d47e4-2955-a3d9-e040-e00a18064a99])
]
【Foreign keys】
MenuItem.dish_id=Dish.id
MenuItem.menu_page_id=MenuPage.id
MenuPage.menu_id=Menu.id

    【Question】
    How many pages are there in the "Emil Kuehn" menu? Emil Kuehn is a name of menu;

    【Evidence】
    Emil Kuehn is a name of menu;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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