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: What is the total sales of 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack' in the Central region?
Evidence: 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack' is the "Product Name";
SQL: SELECT SUM(T1.Sales) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack' AND T2.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: Name the item ordered by Jonathan Doherty with the highest quantity in the East region.
Evidence: Jonathan Doherty is the "Customer Name"; highest quantity refers to MAX(Quantity); Region = 'East'
SQL: SELECT T3.`Product Name` 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` WHERE T2.`Customer Name` = 'Jonathan Doherty' AND T2.Region = 'East' ORDER BY T1.Quantity 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 much is the total quantity of items from the East region shipped on 3/25/2015? Name the products.
Evidence: shipped on 3/25/2015 refers to "Ship Date" = Date('2015-03-25');
SQL: SELECT SUM(T1.Quantity), T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Date` = '2015-03-25' AND T2.Region = 'East'
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 customer ordered 'Global High-Back Leather Tilter, Burgundy' on 10/13/2013 in the East region?
Evidence: 'Global High-Back Leather Tilter, Burgundy' is the "Product Name"; on 10/13/2013 refers to "Order Date" = Date('2013-10-13'); Region = 'East'
SQL: SELECT DISTINCT T2.`Customer Name` 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` WHERE T3.`Product Name` = 'Global High-Back Leather Tilter, Burgundy' AND T1.`Order Date` = '2013-10-13' AND T1.Region = 'East'
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 category does the item ordered by Katherine Murray on 11/4/2018 in the South region belong to?
Evidence: ordered by Katherine Murray refers to "Customer Name" = 'Katherine Murray'; on 11/4/2018 refers to "Order Date" = Date('2018-11-04');
SQL: SELECT DISTINCT T3.Category 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` = 'Katherine Murray' AND T1.`Order Date` = '2018-11-04' AND T2.Region = 'South'
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 percentage do items under the category of 'Furniture' make up the total number of items ordered that are shipped as standard in the West region?
Evidence: shipped as standard refers to "Ship Mode" = 'Standard Class'; Region = 'West'; percentage refers to DIVIDE(SUM(Quantity where Category = 'Furniture'), SUM(Quantity)) * 1.0
SQL: SELECT CAST(SUM(CASE  WHEN T2.Category = 'Furniture' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T1.Quantity) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' AND T1.`Ship Mode` = 'Standard Class'
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 ship date of the order by the customer named Ann Chong in the central region?
Evidence: Ann Chong' is the "Customer Name"; Region = 'Central'
SQL: SELECT T2.`Ship Date` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Ann Chong' 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: Give the customer segment from the West region that orders the order ID CA-2011-108189.
Evidence: Region = 'West'
SQL: SELECT DISTINCT T2.Segment FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' AND T1.`Order ID` = 'CA-2011-108189'
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 total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region?
Evidence: 'Hon Valutask Swivel Chairs' is the "Product Name"
SQL: SELECT SUM(T1.Sales) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Hon Valutask Swivel Chairs' AND T1.Region = 'West'
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: Provide the order ID of Frank Olsen of the South region.
Evidence: Frank Olsen' is the "Customer Name"; Region = 'South'
SQL: SELECT T1.`Order ID` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.Region = 'South' AND T2.`Customer Name` = 'Frank Olsen'
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 was ordered in the Central region on April 26, 2018, and shipped by April 27, 2018?
Evidence: on April 26, 2018 refers to "Order Date" = date('2018-04-26'); shipped by April 27, 2018 refers to "Ship Date" = date('2018-04-27');
SQL: SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order Date` = '2018-04-26' AND T1.`Ship Date` = '2018-04-27' AND T2.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: From which city and state does the customer that bought the product with the highest sales?
Evidence: highest sales refers to max(Sales)
SQL: SELECT T5.City, T5.State FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN people AS T5 ON T5.`Customer ID` = T4.`Customer ID` ORDER BY T2.Sales 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: Who is the customer from the East region that purchased the order with the highest profit?
Evidence: highest profit refers to MAX(profit); Region = 'East'
SQL: SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' ORDER BY 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: Among the customers from Chicago, Illinois, what is the highest quantity of products bought in a single order?
Evidence: from Chicago refers to City = 'Chicago'; Illinois refers to State = 'Illinois'; highest quantity refers to max(Quantity)
SQL: SELECT T1.Quantity FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN people AS T5 ON T5.`Customer ID` = T4.`Customer ID` WHERE T5.City = 'Chicago' AND T5.State = 'Illinois' ORDER BY T1.Quantity 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 order date and product name of the order ID CA-2011-137274 from the Central region?
SQL: SELECT T1.`Order Date`, T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-137274' AND T2.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 down the customers that purchased the product named Xerox 23 in the South region.
Evidence: product named Xerox 23 refers to "Product Name" = 'Xerox 23'; customers refers to "Customer Name"
SQL: SELECT DISTINCT T2.`Customer Name` 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 T1.Region = 'South' AND T3.`Product Name` = 'Xerox 23'
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 products under the office supplies category, what is the product that made the highest sales in the Central region?
Evidence: made the highest sales refers to MAX(Sales)
SQL: SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Office Supplies' AND T2.Region = 'Central' ORDER BY T1.Sales DESC LIMIT 1