set
dict
{ "query": "What is the most common product ordered by a customer from Germany?", "pos": [ "most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'" ], "neg": [ "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "highest number of products refers to MAX(COUNT(ProductID))", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "\"Teatime Chocolate Biscuits\" is the ProductName", "product refers to ProductName;", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';" ] }
{ "query": "Among the product lists in order ID 10337, write down the product names and suppliers which had the highest in reorder level.", "pos": [ "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)" ], "neg": [ "\"Eastern\" is the RegionDescription", "shipped to France refers to ShipCountry = 'France';", "name of product refers to ProductName; ID refers to ProductID", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "\"Exotic Liquids\" is the CompanyName" ] }
{ "query": "Compute the total order quantity for Uncle Bob's Organic Dried Pears so far.", "pos": [ "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)" ], "neg": [ "Morristown refers to TerritoryDescription = 'Morristown'", "average sales = AVG(ProductSales)", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "full name refers to FirstName, LastName; brith day refers to BirthDate", "\"Teatime Chocolate Biscuits\" is the ProductName", "names of all territories refers to TerritoryDescription;" ] }
{ "query": "What percentage of orders were placed by customers in Madrid city in 1996?", "pos": [ "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100" ], "neg": [ "full name refers to FirstName, LastName; brith day refers to BirthDate", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "product refers to ProductName;" ] }
{ "query": "List by order number the 3 items with the lowest price after applying the discount.", "pos": [ "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));" ], "neg": [ "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "clerk who have served the customer refers to o_clerk\n", "customer name refers to c_name; the highest discount refers to max(l_discount)", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)" ] }
{ "query": "List the 5 orders with the highest total price, indicating the delivery date.", "pos": [ "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate" ], "neg": [ "clerk who have served the customer refers to o_clerk\n", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "close to being out of stock refers to ps_availqty < 10", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer refers to c_name; with debt refers to c_acctbal < 0" ] }
{ "query": "What is the name of the country of the supplier with the highest debt?", "pos": [ "name of the country refers to n_name; the highest debt refers to min(s_acctbal)" ], "neg": [ "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "the highest amount of extended price refers to MAX(l_extendedprice);", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000" ] }
{ "query": "List all the nations in Europe.", "pos": [ "nation refers to n_name; Europe refers to r_name = 'EUROPE'" ], "neg": [ "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';" ] }
{ "query": "Which market segment does the customer with the highest amount of debt belongs to?", "pos": [ "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)" ], "neg": [ "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "the highest total price refers to MAX(o_totalprice);", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';" ] }
{ "query": "What is the discounted price of the part \"burnished seashell gainsboro navajo chocolate\" in order no.1?", "pos": [ "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))" ], "neg": [ "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));" ] }
{ "query": "How many kinds of items are returned in order no.5?", "pos": [ "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;" ], "neg": [ "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "customers are in debt refer to c_custkey where c_acctbal < 0;", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'" ] }
{ "query": "Among the products that have a retail price greater than 1,000, how many products were shipped via ship?", "pos": [ "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';" ], "neg": [ "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "customers are in debt refer to c_custkey where c_acctbal < 0;", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));" ] }
{ "query": "Provide the phone number of the customer with the highest total price in an order.", "pos": [ "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);" ], "neg": [ "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "addresses refers to s_address; the biggest part refers to max(p_size)", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;" ] }
{ "query": "How many suppliers from Germany have left a comment with 'carefully regular packages'?", "pos": [ "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'" ], "neg": [ "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "r_comment = 'furiously express accounts wake sly';", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%" ] }
{ "query": "Which part has a bigger size, \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\"?", "pos": [ "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')" ], "neg": [ "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';" ] }
{ "query": "How many countries are there in the region whose comment description is \"asymptotes sublate after the r.\"", "pos": [ "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;" ], "neg": [ "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92" ] }
{ "query": "What percentage of customers from France is in the automobile segment?", "pos": [ "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;" ], "neg": [ "order with the highest total price refers to MAX(o_totalprice);", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')" ] }
{ "query": "What is the order priority of the order with the highest total price?", "pos": [ "order with the highest total price refers to MAX(o_totalprice);" ], "neg": [ "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "Africa refers to r_name = 'Africa';", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "a retail price of over 1900 refers to p_retailprice > 1900", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;" ] }
{ "query": "Among the customers with an account balance lower than 4000, what is the percentage of the customers in the US?", "pos": [ "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;" ], "neg": [ "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;" ] }
{ "query": "List the names of the countries with the below-average number of customers in ascending order of customer numbers.", "pos": [ "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);" ], "neg": [ "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "Customer#000000013 is the name of the customer which refers to c_name;", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "Africa refers to r_name = 'Africa';", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'" ] }
{ "query": "What is the supply cost for the part \"violet olive rose ivory sandy\"?", "pos": [ "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'" ], "neg": [ "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "a retail price of over 1900 refers to p_retailprice > 1900", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "customer name refers to c_name; the highest discount refers to max(l_discount)", "r_comment = 'furiously express accounts wake sly';", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';" ] }
{ "query": "Calculate the percentage of manufactured parts by Manufacturer#3.", "pos": [ "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;" ], "neg": [ "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'" ] }
{ "query": "Lists all parts supplied by Supplier#000000034.", "pos": [ "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'" ], "neg": [ "items with the most quantity available refer to p_name where MAX(ps_availqty);", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;" ] }
{ "query": "Please list the names of all the suppliers for the part with the highest retail price.", "pos": [ "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)" ], "neg": [ "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ] }
{ "query": "What is the total price charged for orders shipped by air without shipping instructions?", "pos": [ "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';" ], "neg": [ "clerk who have served the customer refers to o_clerk\n", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "close to being out of stock refers to ps_availqty < 10", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "customer refers to c_name; with debt refers to c_acctbal < 0", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'" ] }
{ "query": "What is the total price of all orders from the customer with the phone number \"627-220-3983\"?", "pos": [ "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'" ], "neg": [ "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'" ] }
{ "query": "How many suppliers are from Japan?", "pos": [ "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';" ], "neg": [ "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "items with the most quantity available refer to p_name where MAX(ps_availqty);" ] }
{ "query": "Name customers in India with account balances over $5000.", "pos": [ "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000" ], "neg": [ "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)" ] }
{ "query": "What are the countries in the region of Asia?", "pos": [ "countries in the region of Asia refer to n_name where r_name = 'ASIA';" ], "neg": [ "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ] }
{ "query": "Among all the customers in Germany, how many of them have an account balance of over 1000?", "pos": [ "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;" ], "neg": [ "items with the most quantity available refer to p_name where MAX(ps_availqty);", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "order with the highest total price refers to MAX(o_totalprice);", "Africa refers to r_name = 'Africa';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;" ] }
{ "query": "How many orders in 1998 had a total price under 950?", "pos": [ "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950" ], "neg": [ "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "r_comment = 'furiously express accounts wake sly';" ] }
{ "query": "How many orders in total have the customers in the household segment made?", "pos": [ "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';" ], "neg": [ "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'" ] }
{ "query": "The part \"hot spring dodger dim light\" is ordered in how many orders?", "pos": [ "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'" ], "neg": [ "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';" ] }
{ "query": "How many customers belong to the household segment in Germany?", "pos": [ "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'" ], "neg": [ "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "region refers to r_name; the most customers refers to max(count(c_custkey))", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "order with the highest total price refers to MAX(o_totalprice);" ] }
{ "query": "List the order key of the orders with a total price between 200000 and 300000.", "pos": [ "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;" ], "neg": [ "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate" ] }
{ "query": "How many urgent orders did Clerk#000000001 handle in 1997?", "pos": [ "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997" ], "neg": [ "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "close to being out of stock refers to ps_availqty < 10", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "r_comment = 'furiously express accounts wake sly';" ] }
{ "query": "How many items were shipped on 4th December, 1993?", "pos": [ "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';" ], "neg": [ "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "clerk who have served the customer refers to o_clerk\n", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';" ] }
{ "query": "Name the part which is most profitable.", "pos": [ "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);" ], "neg": [ "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;" ] }
{ "query": "Please list the names of all the suppliers for parts under Brand#55.", "pos": [ "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'" ], "neg": [ "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "the highest amount of extended price refers to MAX(l_extendedprice);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0" ] }
{ "query": "What is the average price before discount of the top 10 orders with the highest total price?", "pos": [ "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);" ], "neg": [ "name of the product refers to p_name; the highest retail price refers to p_retailprice", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "addresses refers to s_address; the biggest part refers to max(p_size)", "region refers to r_name; the most customers refers to max(count(c_custkey))", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "customer name refers to c_name; the highest discount refers to max(l_discount)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;" ] }
{ "query": "Among the items shipped in 1994 via truck, how many items were returned?", "pos": [ "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'" ], "neg": [ "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "customer refers to c_name; with debt refers to c_acctbal < 0", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);" ] }
{ "query": "List line items shipped by truck with delivery time before 1997.", "pos": [ "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997" ], "neg": [ "name of the product refers to p_name; the highest retail price refers to p_retailprice", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "customers are in debt refer to c_custkey where c_acctbal < 0;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'" ] }
{ "query": "How many items did Customer#000021159 order? Calculate those items total charges.", "pos": [ "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';" ], "neg": [ "clerk who have served the customer refers to o_clerk\n", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "order with the highest total price refers to MAX(o_totalprice);", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;" ] }
{ "query": "Calculate the percentage of countries that belong to the American region.", "pos": [ "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%" ], "neg": [ "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "a retail price of over 1900 refers to p_retailprice > 1900", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);" ] }
{ "query": "What is the total amount of tax charged for the order placed by customer 88931 on 7/13/994?", "pos": [ "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'" ], "neg": [ "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "clerk who have served the customer refers to o_clerk\n", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "r_comment = 'furiously express accounts wake sly';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'" ] }
{ "query": "Calculate the total price of orders by Customer#000000013.", "pos": [ "Customer#000000013 is the name of the customer which refers to c_name;" ], "neg": [ "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';" ] }
{ "query": "Which country does supplier No.34 come from?", "pos": [ "supplier No.34 refers to s_suppkey = 34; country refers to n_name;" ], "neg": [ "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "region refers to r_name; the most customers refers to max(count(c_custkey))", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "the highest amount of extended price refers to MAX(l_extendedprice);", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);" ] }
{ "query": "How much is the discounted price of every item that customer 111511 ordered in order 53159? List the names of the parts of every item.", "pos": [ "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name" ], "neg": [ "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "region refers to r_name; the most customers refers to max(count(c_custkey))", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';" ] }
{ "query": "What are the countries that belong to Africa?", "pos": [ "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'" ], "neg": [ "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "customer name refers to c_name; the highest discount refers to max(l_discount)", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "Africa refers to r_name = 'Africa';", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;" ] }
{ "query": "What is the profit for part no.98768 in order no.1?", "pos": [ "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))" ], "neg": [ "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "customers are in debt refer to c_custkey where c_acctbal < 0;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))" ] }
{ "query": "Calculate the difference in the average retail price of parts shipped via ship and air.", "pos": [ "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));" ], "neg": [ "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "a retail price of over 1900 refers to p_retailprice > 1900", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'" ] }
{ "query": "What is the average number of items shipped each day in April of 1994?", "pos": [ "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';" ], "neg": [ "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';" ] }
{ "query": "Name the countries that belong in the region with comment description \"furiously express accounts wake sly\".", "pos": [ "r_comment = 'furiously express accounts wake sly';" ], "neg": [ "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "close to being out of stock refers to ps_availqty < 10", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1" ] }
{ "query": "How many parts have a retail price of over 1900?", "pos": [ "a retail price of over 1900 refers to p_retailprice > 1900" ], "neg": [ "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'" ] }
{ "query": "How many of the items are instructed to be delivered in person?", "pos": [ "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'" ], "neg": [ "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "order with the highest total price refers to MAX(o_totalprice);", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ] }
{ "query": "How many of the line items that have a quantity greater than 40 have been shipped by air?", "pos": [ "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'" ], "neg": [ "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);" ] }
{ "query": "What is the total number of orders made by customers in United States?", "pos": [ "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';" ], "neg": [ "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';" ] }
{ "query": "What are the cost prices of large burnished copper?", "pos": [ "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'" ], "neg": [ "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0" ] }
{ "query": "Give the name and phone number of the customers who have more than 9000 account balance.", "pos": [ "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;" ], "neg": [ "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "close to being out of stock refers to ps_availqty < 10", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'" ] }
{ "query": "In the parts shipped by rail, how many are of medium priority?", "pos": [ "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';" ], "neg": [ "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "the highest amount of extended price refers to MAX(l_extendedprice);", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';" ] }
{ "query": "Among the suppliers for the parts ordered in order no.4, how many of them are in debt?", "pos": [ "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0" ], "neg": [ "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';" ] }
{ "query": "Give the percentage of Japanese suppliers whose account is in debt.", "pos": [ "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;" ], "neg": [ "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "the highest amount of extended price refers to MAX(l_extendedprice);", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'" ] }
{ "query": "What is the region with the most customers?", "pos": [ "region refers to r_name; the most customers refers to max(count(c_custkey))" ], "neg": [ "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92" ] }
{ "query": "Please list the names of all the products under the type \"promo brushed steel\".", "pos": [ "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'" ], "neg": [ "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';" ] }
{ "query": "What is the difference between the number of returned items and not returned items with the full price of under 16947.7?", "pos": [ "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7" ], "neg": [ "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;" ] }
{ "query": "Calculate the percentage of suppliers in Germany.", "pos": [ "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;" ], "neg": [ "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;" ] }
{ "query": "What is the average discount for the parts made by Manufacturer#5?", "pos": [ "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';" ], "neg": [ "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "Africa refers to r_name = 'Africa';", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;" ] }
{ "query": "What is the percentage of the European countries among the given countries?", "pos": [ "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;" ], "neg": [ "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'" ] }
{ "query": "What is the nationality of \"Customer#000000055\"?", "pos": [ "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;" ], "neg": [ "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "r_comment = 'furiously express accounts wake sly';", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "clerk who have served the customer refers to o_clerk\n", "close to being out of stock refers to ps_availqty < 10", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)" ] }
{ "query": "Give customer No.106936's region name.", "pos": [ "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;" ], "neg": [ "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'" ] }
{ "query": "List the name of the top ten items with the most quantity available in the descending order of availability.", "pos": [ "items with the most quantity available refer to p_name where MAX(ps_availqty);" ], "neg": [ "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));" ] }
{ "query": "What are the shipping methods for the orders on 12/31/1994?", "pos": [ "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'" ], "neg": [ "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "addresses refers to s_address; the biggest part refers to max(p_size)", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "close to being out of stock refers to ps_availqty < 10", "the highest total price refers to MAX(o_totalprice);" ] }
{ "query": "What are the total quantities of the items ordered by customer 101660 on 10/5/1995?", "pos": [ "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'" ], "neg": [ "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "r_comment = 'furiously express accounts wake sly';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';" ] }
{ "query": "Indicate the name of the parts without discount.", "pos": [ "name of the part refers to p_name; without discount refers to l_discount = 0.0000" ], "neg": [ "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;" ] }
{ "query": "How many customers are in Brazil?", "pos": [ "Brazil is the name of the nation which refers to n_name = 'BRAZIL'" ], "neg": [ "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "r_comment = 'furiously express accounts wake sly';", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "order with the highest total price refers to MAX(o_totalprice);", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ] }
{ "query": "How much is the profit for smoke turquoise purple blue salmon that was delivered in person on 5/7/1996?", "pos": [ "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';" ], "neg": [ "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "clerk who have served the customer refers to o_clerk\n", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "a retail price of over 1900 refers to p_retailprice > 1900", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))" ] }
{ "query": "How many European suppliers are there?", "pos": [ "European suppliers refer to s_suppkey where r_name = 'EUROPE';" ], "neg": [ "name of the product refers to p_name; the highest retail price refers to p_retailprice", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "a retail price of over 1900 refers to p_retailprice > 1900", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);" ] }
{ "query": "Please list the phone numbers of all the customers in the household segment and are in Brazil.", "pos": [ "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';" ], "neg": [ "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "order with the highest total price refers to MAX(o_totalprice);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "clerk who have served the customer refers to o_clerk\n", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "region refers to r_name; the most customers refers to max(count(c_custkey))", "account is in debt if c_acctbal < 0;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'" ] }
{ "query": "Give the name of the customer who made an order with Clerk#000000803 on 1997/12/10.", "pos": [ "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';" ], "neg": [ "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "r_comment = 'furiously express accounts wake sly';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);" ] }
{ "query": "Please list any three customers with debt.", "pos": [ "customer refers to c_name; with debt refers to c_acctbal < 0" ], "neg": [ "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950" ] }
{ "query": "Calculate the percentage of customers' accounts in debt.", "pos": [ "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;" ], "neg": [ "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "r_comment = 'furiously express accounts wake sly';", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "Customer#000000013 is the name of the customer which refers to c_name;", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "nation refers to n_name; Europe refers to r_name = 'EUROPE'" ] }
{ "query": "How many clients from Mozambique required orders with a low priority order?", "pos": [ "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'" ], "neg": [ "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "account is in debt if c_acctbal < 0;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "the highest amount of extended price refers to MAX(l_extendedprice);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "Customer#000000013 is the name of the customer which refers to c_name;", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);" ] }
{ "query": "Please list the order keys of all the orders made by a customer whose account is in debt.", "pos": [ "account is in debt if c_acctbal < 0;" ], "neg": [ "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';" ] }
{ "query": "What is the name of the customer number 93697 with the total order price of 191918.92?", "pos": [ "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92" ], "neg": [ "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "customer refers to c_name; with debt refers to c_acctbal < 0", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;" ] }
{ "query": "Please give the name of the customer who has made the single order with the highest total price.", "pos": [ "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;" ], "neg": [ "customers are in debt refer to c_custkey where c_acctbal < 0;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "account is in debt if c_acctbal < 0;", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'" ] }
{ "query": "List all the addresses for the suppliers of the biggest parts.", "pos": [ "addresses refers to s_address; the biggest part refers to max(p_size)" ], "neg": [ "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;" ] }
{ "query": "How much is the total price of all the orders shipped to customers in Argentina?", "pos": [ "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'" ], "neg": [ "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "Africa refers to r_name = 'Africa';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "the highest total price refers to MAX(o_totalprice);", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "order with the highest total price refers to MAX(o_totalprice);", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'" ] }
{ "query": "Among the products under the type \"promo brushed steel\", how many of them are manufactured by Manufacturer#5?", "pos": [ "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'" ], "neg": [ "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "account is in debt if c_acctbal < 0;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';" ] }
{ "query": "List the phone numbers of customers whose order priority is urgent.", "pos": [ "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'" ], "neg": [ "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));" ] }
{ "query": "How many different clerks have served the customer with the address uFTe2u518et8Q8UC?", "pos": [ "clerk who have served the customer refers to o_clerk\n" ], "neg": [ "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "the highest amount of extended price refers to MAX(l_extendedprice);", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);" ] }
{ "query": "Among the orders made by customers in the household segment, how many of them are urgent?", "pos": [ "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;" ], "neg": [ "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "Customer#000000013 is the name of the customer which refers to c_name;", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "customers are in debt refer to c_custkey where c_acctbal < 0;", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);" ] }
{ "query": "How many part supplies are close to being out of stock?", "pos": [ "close to being out of stock refers to ps_availqty < 10" ], "neg": [ "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;" ] }
{ "query": "Clerk#000000936 dealt with a \"Not Specified\" order on 1995/3/13, what was the charge for the part of the order shipped by truck?", "pos": [ "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';" ], "neg": [ "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "order with the highest total price refers to MAX(o_totalprice);", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account is in debt if c_acctbal < 0;", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "customer refers to c_name; with debt refers to c_acctbal < 0" ] }
{ "query": "Give the number of Moroccan customers whose account is in debt.", "pos": [ "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';" ], "neg": [ "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "order with the highest total price refers to MAX(o_totalprice);", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "Customer#000000013 is the name of the customer which refers to c_name;", "the highest amount of extended price refers to MAX(l_extendedprice);", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name" ] }
{ "query": "Which supplier can provide the most number of \"hot spring dodger dim light\"? Please give the supplier's phone number.", "pos": [ "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone" ], "neg": [ "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ] }
{ "query": "How much higher in percentage is the highest supply cost of the part \"hot spring dodger dim light\" than the lowest supply cost?", "pos": [ "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%" ], "neg": [ "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;" ] }
{ "query": "List any five parts name in Medium Plated Brass.", "pos": [ "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;" ], "neg": [ "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'" ] }
{ "query": "Please list all the modes of shipping for the part \"burnished seashell gainsboro navajo chocolate\".", "pos": [ "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'" ], "neg": [ "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;" ] }
{ "query": "Among all the orders made by a customer in the household segment, what is the highest total price?", "pos": [ "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);" ], "neg": [ "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "region refers to r_name; the most customers refers to max(count(c_custkey))", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "customer name refers to c_name; the highest discount refers to max(l_discount)", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);" ] }
{ "query": "Please list any three line item numbers that have 10% off.", "pos": [ "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1" ], "neg": [ "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';" ] }