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: For how many times has Aimee Bixby ordered the product Xerox 1952?
Evidence: Xerox 1952 is a "Product Name"; Aimee Bixby ordered refers to "Customer Name" = 'Aimee Bixby';
SQL: SELECT COUNT(DISTINCT T2.`Order ID`) 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` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952'
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 was the original price of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?
Evidence: Xerox 1952 is a "Product Name"; ordered by Aimee Bixby refers to "Customer Name" = 'Aimee Bixby'; on 2014/9/10 refers to "Order Date" = date('2014-09-10'); original price refers to DIVIDE(Sales, SUTRACT(1, discount))
SQL: SELECT DISTINCT T2.Sales / (1 - T2.Discount) 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` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-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 was the total cost of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?
Evidence: Xerox 1952 is a "Product Name"; ordered by Aimee Bixby refers to "Customer Name" = 'Aimee Bixby'; on 2014/9/10 refers to "Order Date" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)
SQL: SELECT DISTINCT (T2.Sales / (1 - T2.discount)) * T2.Quantity - Profit 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` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-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: How many art products were ordered in 2013 in the east superstore?
Evidence: ordered in 2013 refers to strftime('%Y', "Order Date") = '2013'; art products refers to "Sub-Category" = 'Art'
SQL: SELECT COUNT(DISTINCT T1.`Product ID`) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Sub-Category` = 'Art' AND T1.Region = 'East' AND STRFTIME('%Y', T1.`Order Date`) = '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: Who is the customer who purchased the largest total cost of products in a single order?
Evidence: largest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))
SQL: SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` GROUP BY T1.`Order ID`, T2.`Customer Name` ORDER BY SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) 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: What is the name of the product that has the highest original price?
Evidence: has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to "Product Name"
SQL: SELECT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY (T1.Sales / (1 - T1.Discount)) 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: What is the name of the product that was ordered recently by Darren Powers?
Evidence: Darren Powers is the "Customer Name"; name of the product refers to "Product Name"; recently refers to MAX("Order Date")
SQL: SELECT T3.`Product Name` 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` WHERE T1.`Customer Name` = 'Darren Powers' ORDER BY T2.`Order Date` 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: How many quantities of Advantus plastic paper clips were ordered overall?
Evidence: Advantus plastic paper clips is the "Product Name";
SQL: SELECT SUM(T1.Quantity) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Advantus Plastic Paper Clips'
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: Which order of Logitech G600 MMO Gaming Mouse has the highest total cost?
Evidence: Logitech G600 MMO Gaming Mouse refers to "Product Name"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))
SQL: SELECT T1.`Order ID` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Logitech G600 MMO Gaming Mouse' GROUP BY T1.`Order ID` ORDER BY SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) 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: What are the names of the products that were ordered by Alejandro Grove?
Evidence: ordered by Alejandro Grove refers to "Customer Name" = 'Alejandro Grove'; names of the products refers to "Product Name"
SQL: SELECT DISTINCT T3.`Product Name` 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 T2.`Customer Name` = 'Alejandro Grove'
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 customers in Chicago ordered at least 10 Cardinal EasyOpen D-Ring Binders in a single order?
Evidence: at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to "Product Name"; customers in Chicago refers to City = 'Chicago'
SQL: SELECT COUNT(DISTINCT T1.`Customer ID`) 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` = 'Cardinal EasyOpen D-Ring Binders' AND T2.City = 'Chicago' 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 are the names of the products with a profit of no less than 1,000 in one single order?
Evidence: profit of no less than 1,000 refers to Profit > = 1000; names of the products refers to "Product Name"
SQL: SELECT DISTINCT T2.`Product Name` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.Profit > 1000
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: Name 10 products that were shipped first class from the East region.
Evidence: shipped first class refers to "Ship Mode" = 'First Class'; Region = 'East'
SQL: SELECT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'First Class' AND T2.Region = 'East' LIMIT 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: List the products ordered by Becky Martin around the Central region.
Evidence: ordered by Becky Martin refers to "Customer Name" = 'Becky Martin'; Region = 'Central'; products refers to "Product Name"
SQL: SELECT DISTINCT T3.`Product Name` 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` WHERE T1.`Customer Name` = 'Becky Martin' AND T3.Region = 'Central'
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 5 customers in the West region who had their item shipped 'Second Class.'
Evidence: shipped 'Second Class.' refers to "Ship Mode" = 'Second Class'; customers refers to "Customer Name"; Region = 'West'
SQL: SELECT DISTINCT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' AND T1.`Ship Mode` = 'Second Class' LIMIT 5
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: Add the total profit of Patrick Gardner in the Central region.
Evidence: Patrick Gardner is the "Customer Name"; Region = 'Central'
SQL: SELECT SUM(T2.Profit) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Patrick Gardner' AND T1.Region = 'Central'
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: Which item was shipped on 3/4/2013 and scheduled for same day delivery in the South region?
Evidence: shipped on 3/4/2013 refers to "Order Date" = date('2013-03-04'); same day delivery refers to "Ship Mode" = 'Same Day'; item refers to "Product Name"
SQL: SELECT T2.`Product Name` FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Date` = '2013-03-04' AND T2.Region = 'South' AND T1.`Order Date` = '2013-03-04'