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 names of all the dishes on page 1 of menu ID12882.
Evidence: page 1 refers to page_number = 1;
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.menu_id = 12882 AND T1.page_number = 1
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Please list the page numbers of all the menu pages on which the dish "Chicken gumbo" had appeared.
Evidence: Chicken gumbo is a name of dish;
SQL: 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'
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menu pages on which the dish "Chicken gumbo" had appeared, what is the menu ID of the one with the biggest width?
Evidence: Chicken gumbo is a name of dish; biggest width refers to MAX(full_width);
SQL: 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
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: For how many times had the dish "Chicken gumbo" appeared on a menu page?
Evidence: Chicken gumbo is a name of dish;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: Among the menu pages on which the dish "Paysanne Soup" had appeared, how many of them had a stable price for the dish?
Evidence: Paysanne Soup is a name of dish; stable price refers to highest_price is null;
SQL: 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
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 "Chicken gumbo" on a menu page?
Evidence: highest price refers to MAX(price); Chicken gumbo 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 = 'Chicken gumbo' 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: How much space does page 1 of the menu "Zentral Theater Terrace" cover?
Evidence: how much space = MULTIPLY(full_height, full_width); Zentral Theater Terrace is a name of menu;
SQL: 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
Database: menu
Tables: Dish, Menu, MenuPage, MenuItem
Columns (table index, column name): -1, *, 0, id, 0, name, 0, description, 0, menus_appeared, 0, times_appeared, 0, first_appeared, 0, last_appeared, 0, lowest_price, 0, highest_price, 1, id, 1, name, 1, sponsor, 1, event, 1, venue, 1, place, 1, physical_description, 1, occasion, 1, notes, 1, call_number, 1, keywords, 1, language, 1, date, 1, location, 1, location_type, 1, currency, 1, currency_symbol, 1, status, 1, page_count, 1, dish_count, 2, id, 2, menu_id, 2, page_number, 2, image_id, 2, full_height, 2, full_width, 2, uuid, 3, id, 3, menu_page_id, 3, price, 3, high_price, 3, dish_id, 3, created_at, 3, updated_at, 3, xpos, 3, ypos
Question: What is the average number of dishes per menu page of menu ID12882?
Evidence: average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));
SQL: 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
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: How many shipments were ordered by S K L Enterprises Inc in 2017?
Evidence: "S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: What is the total number of pounds being transported for S K L Enterprises Inc?
Evidence: "S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?
Evidence: "S K L Enterprises Inc" is the cust_name
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: How many shipments were ordered by a customer in Florida?
Evidence: customer in Florida refers to state = 'FL'
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Please list the IDs of all the shipments made by a retailer customer.
Evidence: "retailer" is the cust_type;  IDs of shipments refers to ship_id
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000?
Evidence: shipment in 2017 refers to Cast(ship_date AS DATE) = 2017; annual revenue of over 30000000 refers to annual_revenue > 30000000
SQL: 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
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: How many shipments in 2017 were done by Sue Newell?
Evidence: in 2017 refers to Cast(ship_date AS DATE) = 2017
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: What is the full name of the driver that has done the most shipments in 2017?
Evidence: driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
SQL: 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
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Among the shipments in 2017, how many of them have the destination in New Jersey?
Evidence: in 2017 refers to Cast(ship_date AS DATE) = 2017; 'New Jersey' is the state
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: What is the maximum weight being transported to New York during a single shipment?
Evidence: "New York" is the city_name; maximum weight refers to Max(weight)
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: How much more pounds in total were transported to New York than to Chicago?
Evidence: "New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
SQL: 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
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.
Evidence: "S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?
Evidence: "S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?
Evidence: "Florida" is the state; "Jacksonville" is city_name;
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: State the headquarter of the truck which completed shipment no.1045.
Evidence: shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
SQL: SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = 1045
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: How many shipments were delivered by the oldest truck model?
Evidence: oldest truck model refers to Min(model_year)
SQL: 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
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Who was the customer of shipment no.1275? Give the customer's name.
Evidence: shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
SQL: 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'
Database: shipping
Tables: city, customer, driver, truck, shipment
Columns (table index, column name): -1, *, 0, city_id, 0, city_name, 0, state, 0, population, 0, area, 1, cust_id, 1, cust_name, 1, annual_revenue, 1, cust_type, 1, address, 1, city, 1, state, 1, zip, 1, phone, 2, driver_id, 2, first_name, 2, last_name, 2, address, 2, city, 2, state, 2, zip_code, 2, phone, 3, truck_id, 3, make, 3, model_year, 4, ship_id, 4, cust_id, 4, weight, 4, truck_id, 4, driver_id, 4, city_id, 4, ship_date
Question: Where was the destination city of shipment no.1701?
Evidence: shipment no. 1701 refers to ship_id = 1701; destination city refers to city_name
SQL: 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'