1sf/bird-sql-train-with-schema huggingface dataset:
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: List the name of all products in the west superstore that customers chose for same-day shipment in the year 2013.
Evidence: name of all products refers to Product Name; same-day shipment refers to "Ship Mode" = 'Same Day'; year 2013 refers to "Ship Date" BETWEEN '2013-01-01' AND '2013-12-31'
SQL: SELECT T2.`Product Name` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'Same Day' AND T1.`Ship Date` LIKE '2013%'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What product category that Sam Craven ordered from the central and east superstore?
SQL: SELECT DISTINCT T3.Category FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` LEFT JOIN central_superstore AS T4 ON T3.`Product ID` = T4.`Product ID` WHERE T2.`Customer Name` = 'Sam Craven'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What is the total quantity that Cindy Stewart order "Lexmark X 9575 Professional All-in-One Color Printer" in the south superstore?
Evidence: Lexmark X 9575 Professional All-in-One Color Printer' is the "Product Name"
SQL: SELECT SUM(T1.Quantity) FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Cindy Stewart' AND T3.`Product Name` = 'Lexmark X 9575 Professional All-in-One Color Printer'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: List the name of all the products with order quantities greater than or equal to 10 in the central superstore that has been shipped by the slowest delivery method.
Evidence: name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT("Order ID") > = 10; slowest delivery refers to "Ship Mode" = 'Standard Class'
SQL: SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'Standard Class' AND T1.Quantity >= 10
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What product category got the least sales in the west superstore?
Evidence: least sales refers to Sales = MIN(Sales)
SQL: SELECT T2.Category FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY T1.Sales LIMIT 1
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What is the total profit of "Memorex Froggy Flash Drive 8 GB in south superstore?
Evidence: "Memorix Froggy Flash Drive 8 GB" is the "Product Name"
SQL: SELECT SUM(T1.Profit) FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` GROUP BY T2.`Product Name` = 'Memorix Froggy Flash Drive 8 GB'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What is the total sales of furniture products in the east superstore in the year 2016.

Evidence: furniture products refers to Category = 'Furnitures'; in the year 2016 refers to "Order Date" BETWEEN '2016-01-01' AND '2016-12-31'
SQL: SELECT SUM(T1.Sales) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2016' AND T2.Category = 'Furniture'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: Calculate the average sales of ""Sharp AL-1530CS Digital Copier in the east and the west superstore.
Evidence: Sharp AL-1530CS Digital Copier' is the "Product Name"; average sales = AVG(Sales)
SQL: SELECT AVG(T1.Sales) FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Sharp AL-1530CS Digital Copier'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: Calculate the percentage of ordered office supplies products in the central and the south superstore.
Evidence: office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'
SQL: SELECT CAST(SUM(CASE  WHEN T3.Category = 'Office Supplies' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Category) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID`
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What is the ratio between customers who live in Texas and customers who live in Indiana?
Evidence: live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))
SQL: SELECT CAST(SUM(CASE  WHEN State = 'Texas' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE  WHEN State = 'Indiana' THEN 1 ELSE 0 END) FROM people
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: Among the orders in Central superstore, which art product were ordered the most?
Evidence: art product refers to Sub-Category = 'Art'; the most refers to max(order_number)
SQL: SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Sub-Category` = 'Art' GROUP BY T2.`Product Name` ORDER BY COUNT(T2.`Product ID`) DESC LIMIT 1
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers.
Evidence: name of the customers refers to Customer_Name; in 2015 refers to "Order Date" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3
SQL: SELECT DISTINCT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2015' GROUP BY T2.`Customer Name` HAVING COUNT(T2.`Customer Name`) > 3
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: State the highest profit made by Anna Chung's orders in the Central Superstore.
Evidence: highest profit refers to max(Profit)
SQL: SELECT MAX(T2.Profit) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Anna Chung'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: How many orders were made by Corey Roper in 2015?
SQL: SELECT COUNT(T2.`Customer ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Corey Roper' AND STRFTIME('%Y', T2.`Ship Date`) = '2015'
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: Calculate the difference between the total sales in the East superstore and the total sales in the West superstore.
Evidence: East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')
SQL: SELECT SUM(T1.Sales) - SUM(T2.Sales) AS difference FROM east_superstore AS T1 INNER JOIN west_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID`
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: What are the names of the ordered products that have profit deficiency in central superstore?
Evidence: names of the ordered products refers to Product Name; deficiency refers to profit value is negative; profit > 0
SQL: SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'Central' AND T1.Profit < 0
Database: superstore
Tables: people, product, central_superstore, east_superstore, south_superstore, west_superstore
Columns (table index, column name): -1, *, 0, Customer ID, 0, Customer Name, 0, Segment, 0, Country, 0, City, 0, State, 0, Postal Code, 0, Region, 1, Product ID, 1, Product Name, 1, Category, 1, Sub-Category, 1, Region, 2, Row ID, 2, Order ID, 2, Order Date, 2, Ship Date, 2, Ship Mode, 2, Customer ID, 2, Region, 2, Product ID, 2, Sales, 2, Quantity, 2, Discount, 2, Profit, 3, Row ID, 3, Order ID, 3, Order Date, 3, Ship Date, 3, Ship Mode, 3, Customer ID, 3, Region, 3, Product ID, 3, Sales, 3, Quantity, 3, Discount, 3, Profit, 4, Row ID, 4, Order ID, 4, Order Date, 4, Ship Date, 4, Ship Mode, 4, Customer ID, 4, Region, 4, Product ID, 4, Sales, 4, Quantity, 4, Discount, 4, Profit, 5, Row ID, 5, Order ID, 5, Order Date, 5, Ship Date, 5, Ship Mode, 5, Customer ID, 5, Region, 5, Product ID, 5, Sales, 5, Quantity, 5, Discount, 5, Profit
Question: In west superstore, what is the name and the shipping mode of the product that was ordered with the shortest shipment time?
Evidence: name refers to "Product Name"; shipping mode refers to Ship Mode; shortest shipment time refers to min(subtract(Ship Date, Order Date))
SQL: SELECT DISTINCT T2.`Product Name`, T1.`Ship Mode` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' ORDER BY T1.`Ship Date` - T1.`Order Date` LIMIT 1