set
dict |
---|
{
"query": "For the order with the total price of 231499.38, what was the discounted price for supplier No. 9397?",
"pos": [
"MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;"
],
"neg": [
"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%",
"name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';",
"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));",
"more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;",
"DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;",
"customers are in debt refer to c_custkey where 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';",
"supplier name refers to s_name; the highest retail price refers to max(p_retailprice)",
"cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;"
]
} |
{
"query": "Among the products manufactured by manufacturer 5 that have a retail price of no more than 1,000, how many products were shipped via rail?",
"pos": [
"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';"
],
"neg": [
"supplier name refers to s_name; the highest retail price refers to max(p_retailprice)",
"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))",
"Africa refers to r_name = 'Africa';",
"account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))",
"DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;",
"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;",
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'",
"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 name of the product with the highest retail price?",
"pos": [
"name of the product refers to p_name; the highest retail price refers to p_retailprice"
],
"neg": [
"cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'",
"p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;",
"mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'",
"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);",
"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",
"phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'",
"the highest amount of extended price refers to MAX(l_extendedprice);",
"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",
"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);",
"addresses refers to s_address; the biggest part refers to max(p_size)"
]
} |
{
"query": "Which order has a higher priority, order no. 4 or order no. 36?",
"pos": [
"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);"
],
"neg": [
"Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"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';",
"customer name refers to c_name; the highest discount refers to max(l_discount)",
"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)))",
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"the highest amount of extended price refers to MAX(l_extendedprice);",
"clerk who have served the customer refers to o_clerk\n",
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'"
]
} |
{
"query": "What is the biggest discount among all orders for the part \"burnished seashell gainsboro navajo chocolate\"?",
"pos": [
"the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"
],
"neg": [
"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%",
"orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';",
"phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'",
"orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;",
"the highest amount of extended price refers to MAX(l_extendedprice);",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"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';",
"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(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';",
"Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0"
]
} |
{
"query": "List the names of customers whose accounts are in debt.",
"pos": [
"name of customer refers to c_name; account in debt refers to c_acctbal < 0"
],
"neg": [
"total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;",
"DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;",
"\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;",
"Customer#000000013 is the name of the customer which refers to c_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';",
"phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'",
"parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';",
"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 with the most quantity available refer to p_name where MAX(ps_availqty);"
]
} |
{
"query": "What is the account balance of the supplier with the most parts?",
"pos": [
"account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))"
],
"neg": [
"MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;",
"countries in the region of Asia refer to n_name where r_name = 'ASIA';",
"name of customer refers to c_name; account in debt refers to c_acctbal < 0",
"nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'",
"phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'",
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"customers are in debt refer to c_custkey where c_acctbal < 0;",
"DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;",
"a retail price of over 1900 refers to p_retailprice > 1900",
"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))"
]
} |
{
"query": "Among all the customers, what is the percentage of the customer's nation being Germany?",
"pos": [
"DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;"
],
"neg": [
"1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'",
"total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"close to being out of stock refers to ps_availqty < 10",
"Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0",
"supplier name refers to s_name; the highest retail price refers to max(p_retailprice)",
"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);",
"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); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'"
]
} |
{
"query": "List the phone number of the customer who placed orders with a total price of more than $300,000.",
"pos": [
"phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000"
],
"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);",
"addresses refers to s_address; the biggest part refers to max(p_size)",
"name of customer refers to c_name; account in debt refers to c_acctbal < 0",
"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';",
"account is in debt if c_acctbal < 0;",
"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';",
"supplier No.34 refers to s_suppkey = 34; country refers to n_name;",
"name of the part refers to p_name; without discount refers to l_discount = 0.0000",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)"
]
} |
{
"query": "Among the customers from Morocco, how many customers were in debt?",
"pos": [
"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;"
],
"neg": [
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"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);",
"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);",
"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 biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'",
"nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'",
"product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0",
"country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));",
"the highest total price refers to MAX(o_totalprice);"
]
} |
{
"query": "Name of customer whose order is applied with the highest discount.",
"pos": [
"customer name refers to c_name; the highest discount refers to max(l_discount)"
],
"neg": [
"orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';",
"supplier name refers to s_name; the highest retail price refers to max(p_retailprice)",
"part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'",
"AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';",
"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;",
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"close to being out of stock refers to ps_availqty < 10",
"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%",
"customers are in debt refer to c_custkey where c_acctbal < 0;",
"average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"
]
} |
{
"query": "What is the total price and the order priority of order number 33?",
"pos": [
"total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33"
],
"neg": [
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;",
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000",
"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);",
"order key refers to l_orderkey; not applied for the discount refers to l_discount = 0",
"phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000",
"suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';",
"nation refers to n_name; Europe refers to r_name = 'EUROPE'",
"parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';",
"part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'",
"SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';"
]
} |
{
"query": "How many customers are in the automobile market segment?",
"pos": [
"automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"
],
"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;",
"urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"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%",
"clerk who have served the customer refers to o_clerk\n",
"total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"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 part refers to p_name; without discount refers to l_discount = 0.0000",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;"
]
} |
{
"query": "How many order keys are not applied for the discount?",
"pos": [
"order key refers to l_orderkey; not applied for the discount refers to l_discount = 0"
],
"neg": [
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;",
"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;",
"order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate",
"parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';",
"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);",
"account is in debt if c_acctbal < 0;",
"r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;",
"machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0",
"DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;"
]
} |
{
"query": "Please list all the brands that contain a part under the type \"promo brushed steel\".",
"pos": [
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'"
],
"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;",
"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",
"phone number of the customer refers to c_phone; 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'",
"the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%",
"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);",
"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",
"Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0",
"parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';",
"supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'"
]
} |
{
"query": "Please indicate the names of customers whose orders are eligible for 10% discount with order dates between 1/1/1994 and 1/1/1995.",
"pos": [
"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'"
],
"neg": [
"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))",
"close to being out of stock refers to ps_availqty < 10",
"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')",
"Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"addresses refers to s_address; the biggest part refers to max(p_size)",
"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));",
"household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"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"
]
} |
{
"query": "Which nation and region does the Customer#000000008 come from?",
"pos": [
"nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'"
],
"neg": [
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"Africa refers to r_name = 'Africa';",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;",
"r_comment = 'furiously express accounts wake sly';",
"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';",
"cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'",
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;"
]
} |
{
"query": "What are the top 2 order keys of the item with the highest amount of extended price?",
"pos": [
"the highest amount of extended price refers to MAX(l_extendedprice);"
],
"neg": [
"AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';",
"order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);",
"the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'",
"Africa refers to r_name = 'Africa';",
"nation refers to n_name; Europe refers to r_name = 'EUROPE'",
"DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;",
"items with the most quantity available refer to p_name where MAX(ps_availqty);",
"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))",
"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",
"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": "How many orders were shipped in 1994?",
"pos": [
"orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;"
],
"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;",
"DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;",
"the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%",
"shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'",
"phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);",
"European suppliers refer to s_suppkey where r_name = 'EUROPE';",
"customer name refers to c_name; the highest discount refers to max(l_discount)",
"orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;",
"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'",
"r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;"
]
} |
{
"query": "Please state the segment, the name, the address, and the phone number of customer number 3.",
"pos": [
"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"
],
"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);",
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'",
"SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';",
"part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'",
"machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;",
"customer refers to c_name; with debt refers to c_acctbal < 0",
"products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';",
"the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950"
]
} |
{
"query": "List the country name of the customers in the building marketing segment with an account balance greater than 80% of the average account balance of all customers.",
"pos": [
"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);"
],
"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);",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;",
"shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'",
"r_comment = 'furiously express accounts wake sly';",
"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;",
"p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;",
"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;",
"DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;",
"customer refers to c_name; with debt refers to c_acctbal < 0"
]
} |
{
"query": "Calculate the total profit made by chocolate floral blue coral cyan.",
"pos": [
"SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';"
],
"neg": [
"region refers to r_name; the most customers refers to max(count(c_custkey))",
"name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';",
"account is in debt if c_acctbal < 0;",
"product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"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';",
"orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;",
"market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)",
"countries in the region of Asia refer to n_name where r_name = 'ASIA';",
"DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;",
"account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))"
]
} |
{
"query": "Which part and supplier have the most profit?",
"pos": [
"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)))"
],
"neg": [
"order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0",
"phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);",
"1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'",
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"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';",
"DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33",
"the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%"
]
} |
{
"query": "When was the order with the highest amount of total price shipped?",
"pos": [
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);"
],
"neg": [
"product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'",
"DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';",
"addresses refers to s_address; the biggest part refers to max(p_size)",
"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)",
"account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))",
"DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;"
]
} |
{
"query": "How many items shipped by REG AIR were ordered on March 22, 1995?",
"pos": [
"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';"
],
"neg": [
"DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;",
"clerk who have served the customer refers to o_clerk\n",
"phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000",
"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';",
"orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;",
"r_comment = 'furiously express accounts wake sly';",
"order key refers to l_orderkey; not applied for the discount refers to l_discount = 0",
"name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';",
"part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'"
]
} |
{
"query": "What is the average supply cost for the part \"hot spring dodger dim light\"?",
"pos": [
"average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"
],
"neg": [
"r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;",
"SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';",
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"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",
"order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"customer name refers to c_name; the highest discount refers to max(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';",
"instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'"
]
} |
{
"query": "What is the discounted price of line item number 1?",
"pos": [
"discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1"
],
"neg": [
"MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;",
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'",
"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'",
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);",
"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%",
"items with the most quantity available refer to p_name where MAX(ps_availqty);",
"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",
"orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';",
"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')));"
]
} |
{
"query": "How many orders of more than 10 items have been returned?",
"pos": [
"more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;"
],
"neg": [
"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 \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"account is in debt if c_acctbal < 0;",
"close to being out of stock refers to ps_availqty < 10",
"part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'",
"country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'",
"Customer#000000013 is the name of the customer which refers to c_name;",
"automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"
]
} |
{
"query": "What was the order date of items with the highest total price?",
"pos": [
"the highest total price refers to MAX(o_totalprice);"
],
"neg": [
"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; 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;",
"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';",
"order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));",
"orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';",
"country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'",
"\"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;",
"part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"European suppliers refer to s_suppkey where r_name = 'EUROPE';"
]
} |
{
"query": "To which segment belongs the customer that made the most orders in April 1994?",
"pos": [
"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));"
],
"neg": [
"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'",
"the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'",
"order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));",
"machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0",
"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 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 quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'",
"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"
]
} |
{
"query": "List the comments describing orders from customers in the furniture segment.",
"pos": [
"comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'"
],
"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;",
"region refers to r_name; the most customers refers to max(count(c_custkey))",
"\"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; the highest retail price refers to max(p_retailprice)",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"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 No.34 refers to s_suppkey = 34; country refers to n_name;",
"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",
"cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'",
"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": "Among the parts shipped by rail on 1st December, 1995, list part names with 10% discount.",
"pos": [
"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;"
],
"neg": [
"more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;",
"part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';",
"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;",
"\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;",
"automobile market segment refers to c_mktsegment = 'AUTOMOBILE';",
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';",
"customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000"
]
} |
{
"query": "Please list the order comments of all the orders made by customers in the household segment.",
"pos": [
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;"
],
"neg": [
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);",
"country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'",
"nation refers to n_name; Europe refers to r_name = 'EUROPE'",
"SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';",
"\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';",
"the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%",
"line item number refers to l_linenumber; 10% off refers to l_discount = 0.1",
"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",
"nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'"
]
} |
{
"query": "In which country do most of the customers come from?",
"pos": [
"country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));"
],
"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')",
"supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'",
"Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'",
"products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';",
"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;",
"Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';",
"customer name refers to c_name; the highest discount refers to max(l_discount)",
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';",
"AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';"
]
} |
{
"query": "How many of the line items have been shipped by rail with a quantity less than 30?",
"pos": [
"shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;"
],
"neg": [
"DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"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);",
"DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;",
"part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));",
"order with the highest total price refers to MAX(o_totalprice);",
"customer name refers to c_name; the highest discount refers to max(l_discount)",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"
]
} |
{
"query": "When was the latest date the items of order no.1 were shipped?",
"pos": [
"order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);"
],
"neg": [
"name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;",
"DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;",
"region refers to r_name; the most customers refers to max(count(c_custkey))",
"average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;",
"DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"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))",
"countries in the region of Asia refer to n_name where r_name = 'ASIA';"
]
} |
{
"query": "Among all the suppliers providing the part \"hot spring dodger dim light\", how many of them are in Europe?",
"pos": [
"part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'"
],
"neg": [
"customer name refers to c_name; the highest discount refers to max(l_discount)",
"Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'",
"DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;",
"region refers to r_name; the most customers refers to max(count(c_custkey))",
"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",
"Africa refers to r_name = 'Africa';",
"p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;",
"order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));",
"order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0"
]
} |
{
"query": "How many customers in the machinery segment are in debt?",
"pos": [
"machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0"
],
"neg": [
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"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);",
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;",
"name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';",
"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';",
"automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"
]
} |
{
"query": "List down the nation keys and names in Africa.",
"pos": [
"Africa refers to r_name = 'Africa';"
],
"neg": [
"automobile market segment refers to c_mktsegment = 'AUTOMOBILE';",
"AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';",
"MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;",
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);",
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'",
"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);",
"orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;",
"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": "What is the supply cost of large plated tin?",
"pos": [
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'"
],
"neg": [
"addresses refers to s_address; the biggest part refers to max(p_size)",
"DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;",
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'",
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'",
"total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'",
"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';",
"urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997"
]
} |
{
"query": "Of the orders with a lower delivery priority, how many have an urgent priority order?",
"pos": [
"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);"
],
"neg": [
"name of the country refers to n_name; the highest debt refers to min(s_acctbal)",
"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);",
"shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'",
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';",
"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",
"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')",
"name of the part refers to p_name; without discount refers to l_discount = 0.0000",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;",
"name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;",
"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')));"
]
} |
{
"query": "Among the providers in Argentina, which supplier has an account that is in debt?",
"pos": [
"Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0"
],
"neg": [
"comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'",
"r_comment = 'furiously express accounts wake sly';",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;",
"mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'",
"total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'",
"line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998",
"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 key refers to l_orderkey; not applied for the discount refers to l_discount = 0",
"Customer#000000013 is the name of the customer which refers to c_name;",
"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": "What are the names of the parts manufactured by manufacturer 3 that have a supply cost of 1,000?",
"pos": [
"names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;"
],
"neg": [
"orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';",
"average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"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 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)))",
"SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';",
"r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;",
"clerk who have served the customer refers to o_clerk\n",
"name of customer refers to c_name; account in debt refers to c_acctbal < 0",
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);",
"\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;"
]
} |
{
"query": "Please list the names of all the suppliers for the part \"hot spring dodger dim light\".",
"pos": [
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"
],
"neg": [
"part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'",
"brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"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';",
"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;",
"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;",
"names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;",
"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 refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998",
"European suppliers refer to s_suppkey where r_name = 'EUROPE';",
"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')));"
]
} |
{
"query": "Please indicate the names of the customers whose order with a total price over $300000.",
"pos": [
"customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000"
],
"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);",
"customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000",
"orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;",
"customer refers to c_name; with debt refers to c_acctbal < 0",
"line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998",
"when shipped refers to l_shipdate; the highest amount of total price refers to 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",
"SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';",
"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;",
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000"
]
} |
{
"query": "How many line items were returned in 1998?",
"pos": [
"line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998"
],
"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);",
"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));",
"DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;",
"DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;",
"when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);",
"suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';",
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';",
"total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'",
"DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;"
]
} |
{
"query": "What is the comment of the order with the highest total price?",
"pos": [
"the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;"
],
"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';",
"supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'",
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"close to being out of stock refers to ps_availqty < 10",
"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;",
"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))",
"the highest total price refers to MAX(o_totalprice);",
"Brazil is the name of the nation which refers to n_name = 'BRAZIL'",
"phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'"
]
} |
{
"query": "Among all the parts under the type \"promo brushed steel\", how many of them have a total available quantity from all suppliers of under 5000?",
"pos": [
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000"
],
"neg": [
"account is in debt if c_acctbal < 0;",
"Customer#000000013 is the name of the customer which refers to c_name;",
"Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;",
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"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 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",
"countries in the region of Asia refer to n_name where r_name = 'ASIA';",
"supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'",
"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')));",
"Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'"
]
} |
{
"query": "Among the customers from the United States, which market segment has the highest number of customers?",
"pos": [
"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;"
],
"neg": [
"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));",
"a retail price of over 1900 refers to p_retailprice > 1900",
"part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'",
"products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';",
"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;",
"DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);",
"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 \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"
]
} |
{
"query": "How many customers are there in India?",
"pos": [
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';"
],
"neg": [
"country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));",
"quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'",
"type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'",
"close to being out of stock refers to ps_availqty < 10",
"DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;",
"returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;",
"1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950",
"orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';",
"account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';",
"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"
]
} |
{
"query": "How many customers are in debt?",
"pos": [
"customers are in debt refer to c_custkey where c_acctbal < 0;"
],
"neg": [
"household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'",
"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';",
"supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'",
"country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'",
"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';",
"customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';",
"close to being out of stock refers to ps_availqty < 10",
"total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'",
"product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'",
"Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'"
]
} |
{
"query": "Calculate the percentage of sold blades in the total number of transactions.",
"pos": [
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;"
],
"neg": [
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"most sold refers to MAX(Quantity);",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"Mountain-100 Silver, 38' is name of product;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"free gifts refers to Price = 0;",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"
]
} |
{
"query": "Which product has the highest total amount of quantity sold? Calculate its overall total price.",
"pos": [
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));"
],
"neg": [
"below the average quantity refers to Quantity < AVG(Quantity);",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"free gifts refers to Price = 0;",
"most common last name refers to MAX(COUNT(LastName));",
"Hex Nut 9' is name of product;",
"most sold refers to MAX(Quantity);",
"price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"id refers to SalesPersonID; SalesPersonID = 10",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;"
]
} |
{
"query": "What is the full name of employee who sold 1000 units?",
"pos": [
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100"
],
"neg": [
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"id refers to SalesPersonID; SalesPersonID = 10",
"Flat Washer 8' is name of product;",
"highest quantity refers to MAX(Quantity);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"sales transactions refers to SalesID;",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"most expensive product refers to MAX(Price);",
"most quantity refers to MAX(Quantity);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"
]
} |
{
"query": "What is the name of the product that is most sold by sale person id 20?",
"pos": [
"most sold refers to MAX(Quantity);"
],
"neg": [
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);",
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"Hex Nut 9' is name of product;",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"
]
} |
{
"query": "Calculate the total sales ids that were sales of Flat Washer 8.",
"pos": [
"Flat Washer 8' is name of product;"
],
"neg": [
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"Hex Nut 9' is name of product;",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"most quantity refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"Chainring Bolts' is name of product;",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"
]
} |
{
"query": "List the customer's ID and last name of the customer that purchased a product with a quantity greater than 90% of the average quantity of all listed products.",
"pos": [
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);"
],
"neg": [
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"most expensive product refers to MAX(Price);",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"sales transactions refers to SalesID;",
"most quantity refers to MAX(Quantity);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));"
]
} |
{
"query": "Calculate the total quantity of products with name starting with alphabet \"c\".",
"pos": [
"name starting with alphabet \"c\" refers to Name LIKE 'C%';"
],
"neg": [
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"trading quantity for more than 500 refers to Quantity > 500;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"highest quantity refers to MAX(Quantity);",
"id refers to SalesPersonID; SalesPersonID = 10",
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"most common last name refers to MAX(COUNT(LastName));"
]
} |
{
"query": "Name the customers who received 'Touring Rim' as a free gift.",
"pos": [
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;"
],
"neg": [
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"ML Road Frame-W - Yellow, 40' is name of product;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"highest quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"highest quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"highest quantity refers to MAX(Quantity);"
]
} |
{
"query": "Among the products that have price ranges from 100 to 150, what is the customer ID and sales ID of the product with a quantity lower than 25?",
"pos": [
"price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;"
],
"neg": [
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"quantity is more than 950 refers to Quantity > 950;",
"highest quantity refers to MAX(Quantity);",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"most common last name refers to MAX(COUNT(LastName));",
"Mountain-100 Silver, 38' is name of product;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"most quantity refers to MAX(Quantity);"
]
} |
{
"query": "Among the products with product ID lower than 15, how many of them costs 10 and below?",
"pos": [
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;"
],
"neg": [
"Hex Nut 9' is name of product;",
"trading quantity for more than 500 refers to Quantity > 500;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"External Lock Washer 7' is name of product;",
"Flat Washer 8' is name of product;",
"ML Road Frame-W - Yellow, 40' is name of product;",
"highest quantity refers to MAX(Quantity);",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"most common last name refers to MAX(COUNT(LastName));"
]
} |
{
"query": "Give the full name of the employee who has sold the most quantity.",
"pos": [
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);"
],
"neg": [
"highest quantity refers to MAX(Quantity);",
"most common last name refers to MAX(COUNT(LastName));",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"Chainring Bolts' is name of product;",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"External Lock Washer 7' is name of product;",
"highest quantity refers to MAX(Quantity);",
"free gifts refers to Price = 0;",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"
]
} |
{
"query": "Name the product that sold the most quantity.",
"pos": [
"most quantity refers to MAX(Quantity);"
],
"neg": [
"price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;",
"Flat Washer 8' is name of product;",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"below the average quantity refers to Quantity < AVG(Quantity);",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;",
"id refers to SalesPersonID; SalesPersonID = 10",
"most sold refers to MAX(Quantity);",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"
]
} |
{
"query": "Find and list the products that sold below the average quantity.",
"pos": [
"below the average quantity refers to Quantity < AVG(Quantity);"
],
"neg": [
"highest quantity refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"most common last name refers to MAX(COUNT(LastName));",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"ML Road Frame-W - Yellow, 40' is name of product;",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"most quantity refers to MAX(Quantity);",
"most expensive product refers to MAX(Price);",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);"
]
} |
{
"query": "What is the full name of the customer who purchased the highest amount of total price in a single purchase?",
"pos": [
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));"
],
"neg": [
"most expensive product refers to MAX(Price);",
"Chainring Bolts' is name of product;",
"most common last name refers to MAX(COUNT(LastName));",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;",
"External Lock Washer 7' is name of product;",
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';"
]
} |
{
"query": "List down product names of free gifts.",
"pos": [
"free gifts refers to Price = 0;"
],
"neg": [
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"quantity is more than 950 refers to Quantity > 950;",
"most expensive product refers to MAX(Price);",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"sales transactions refers to SalesID;",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"Hex Nut 9' is name of product;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"
]
} |
{
"query": "How many chainring bolts were sold under sales ID 551971?",
"pos": [
"Chainring Bolts' is name of product;"
],
"neg": [
"most sold refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"most common last name refers to MAX(COUNT(LastName));",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"highest quantity refers to MAX(Quantity);",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"External Lock Washer 7' is name of product;"
]
} |
{
"query": "How many employees sold \"ML Road Frame-W - Yellow, 40\"?",
"pos": [
"ML Road Frame-W - Yellow, 40' is name of product;"
],
"neg": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"highest quantity refers to MAX(Quantity);",
"Chainring Bolts' is name of product;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);"
]
} |
{
"query": "Calculate the total price for products from id 400 to 500.",
"pos": [
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"
],
"neg": [
"Hex Nut 9' is name of product;",
"most expensive product refers to MAX(Price);",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"Flat Washer 8' is name of product;",
"External Lock Washer 7' is name of product;",
"highest quantity refers to MAX(Quantity);",
"below the average quantity refers to Quantity < AVG(Quantity);",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"total quantity = SUM(Quantity); gifts refers to Price = 0;"
]
} |
{
"query": "Among customers named Kate, who has the highest quantity?",
"pos": [
"highest quantity refers to MAX(Quantity);"
],
"neg": [
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"Chainring Bolts' is name of product;",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"highest quantity refers to MAX(Quantity);",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"highest quantity refers to MAX(Quantity);"
]
} |
{
"query": "List the first names of employees with trading quantity for more than 500.",
"pos": [
"trading quantity for more than 500 refers to Quantity > 500;"
],
"neg": [
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"most expensive product refers to MAX(Price);",
"most common last name refers to MAX(COUNT(LastName));",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"sales transactions refers to SalesID;"
]
} |
{
"query": "List the sales ID of the product with a quantity of 590 and named \"External Lock Washer 7\".",
"pos": [
"External Lock Washer 7' is name of product;"
],
"neg": [
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"highest quantity refers to MAX(Quantity);",
"free gifts refers to Price = 0;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"most common last name refers to MAX(COUNT(LastName));",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"highest quantity refers to MAX(Quantity);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"
]
} |
{
"query": "How much is the total amount of sales handled by Heather McBadden?",
"pos": [
"total amount of sales = SUM(MULTIPLY(Quantity, Price));"
],
"neg": [
"Mountain-100 Silver, 38' is name of product;",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"Flat Washer 8' is name of product;",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;",
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"
]
} |
{
"query": "Tally the product name and quantity of the first ten sales.",
"pos": [
"first ten sales refers to SalesID BETWEEN 1 AND 10;"
],
"neg": [
"most sold refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"most expensive product refers to MAX(Price);",
"Mountain-100 Silver, 38' is name of product;",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"free gifts refers to Price = 0;",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"
]
} |
{
"query": "How many types of \"HL Touring Frames\" are there?",
"pos": [
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';"
],
"neg": [
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"below the average quantity refers to Quantity < AVG(Quantity);",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"free gifts refers to Price = 0;",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"Mountain-100 Silver, 38' is name of product;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"sales transactions refers to SalesID;"
]
} |
{
"query": "List the product ID of the top five products, by descending order, in terms of price.",
"pos": [
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"
],
"neg": [
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"trading quantity for more than 500 refers to Quantity > 500;",
"ML Road Frame-W - Yellow, 40' is name of product;",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"highest quantity refers to MAX(Quantity);",
"free gifts refers to Price = 0;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';"
]
} |
{
"query": "How many customer ids have purchased Hex Nut 9?",
"pos": [
"Hex Nut 9' is name of product;"
],
"neg": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"free gifts refers to Price = 0;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"Mountain-100 Silver, 38' is name of product;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"ML Road Frame-W - Yellow, 40' is name of product;",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"first ten sales refers to SalesID BETWEEN 1 AND 10;"
]
} |
{
"query": "How many \"Mountain-100 Silver, 38\" were sold by Stearns MacFeather?",
"pos": [
"Mountain-100 Silver, 38' is name of product;"
],
"neg": [
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"most common last name refers to MAX(COUNT(LastName));",
"highest quantity refers to MAX(Quantity);",
"most quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"id refers to SalesPersonID; SalesPersonID = 10",
"Flat Washer 8' is name of product;"
]
} |
{
"query": "How many \"Mountain-500 Black 42\" were sold in total?",
"pos": [
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);"
],
"neg": [
"most quantity refers to MAX(Quantity);",
"sales transactions refers to SalesID;",
"quantity is more than 950 refers to Quantity > 950;",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"most sold refers to MAX(Quantity);",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"Hex Nut 9' is name of product;"
]
} |
{
"query": "List down the product name for products from id 1 to 10.",
"pos": [
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;"
],
"neg": [
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"id refers to SalesPersonID; SalesPersonID = 10",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"highest quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"
]
} |
{
"query": "Write down the name of products whose sale quantity is more than 950.",
"pos": [
"quantity is more than 950 refers to Quantity > 950;"
],
"neg": [
"most expensive product refers to MAX(Price);",
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);",
"highest quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"highest quantity refers to MAX(Quantity);",
"Flat Washer 8' is name of product;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;"
]
} |
{
"query": "List down all of the sales IDs for sales handled by sales people with first name starting with alphabet \"s\".",
"pos": [
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';"
],
"neg": [
"most expensive product refers to MAX(Price);",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;",
"free gifts refers to Price = 0;",
"most common last name refers to MAX(COUNT(LastName));",
"Mountain-100 Silver, 38' is name of product;",
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"trading quantity for more than 500 refers to Quantity > 500;",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;"
]
} |
{
"query": "What is the average price of products that cost between 100 and 200?",
"pos": [
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;"
],
"neg": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"trading quantity for more than 500 refers to Quantity > 500;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"highest quantity refers to MAX(Quantity);",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;"
]
} |
{
"query": "Among customers with IDs from 1 to 100, what is the highest price of products they purchased?",
"pos": [
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);"
],
"neg": [
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"most sold refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"External Lock Washer 7' is name of product;"
]
} |
{
"query": "List the full names of customers who have purchased products in quantity over 600.",
"pos": [
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;"
],
"neg": [
"most common last name refers to MAX(COUNT(LastName));",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"sales transactions refers to SalesID;",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"ML Road Frame-W - Yellow, 40' is name of product;",
"highest quantity refers to MAX(Quantity);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"
]
} |
{
"query": "What is the total cost of all the \"Road-650, Red, 60\" products that Abraham E. Bennet sold?",
"pos": [
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"
],
"neg": [
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"trading quantity for more than 500 refers to Quantity > 500;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"most common last name refers to MAX(COUNT(LastName));"
]
} |
{
"query": "Calculate the revenue produced through sales of HL Road Frame - Red, 56.",
"pos": [
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"
],
"neg": [
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"highest quantity refers to MAX(Quantity);",
"most expensive product refers to MAX(Price);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"Chainring Bolts' is name of product;",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';"
]
} |
{
"query": "Give the full name of the customer who bought the most amount of products.",
"pos": [
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));"
],
"neg": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"below the average quantity refers to Quantity < AVG(Quantity);",
"highest quantity refers to MAX(Quantity);",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"highest quantity refers to MAX(Quantity);",
"Chainring Bolts' is name of product;",
"most expensive product refers to MAX(Price);",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;"
]
} |
{
"query": "How many customers share the most common last name?",
"pos": [
"most common last name refers to MAX(COUNT(LastName));"
],
"neg": [
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"Chainring Bolts' is name of product;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"trading quantity for more than 500 refers to Quantity > 500;",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"Flat Washer 8' is name of product;"
]
} |
{
"query": "List the full name of customers who spend more than 50,000 in descending order the amount spend.",
"pos": [
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"
],
"neg": [
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"highest quantity refers to MAX(Quantity);",
"most expensive product refers to MAX(Price);",
"average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"total quantity = SUM(Quantity); gifts refers to Price = 0;",
"External Lock Washer 7' is name of product;",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"
]
} |
{
"query": "Find and list the full name of customers who bought products above-average quantity.",
"pos": [
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);"
],
"neg": [
"quantity is more than 950 refers to Quantity > 950;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"most common last name refers to MAX(COUNT(LastName));",
"free gifts refers to Price = 0;",
"sales transactions refers to SalesID;",
"Flat Washer 8' is name of product;",
"id refers to SalesPersonID; SalesPersonID = 10",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"most expensive product refers to MAX(Price);",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"
]
} |
{
"query": "How many sales transactions were given by the customer named Joe L. Lopez?",
"pos": [
"sales transactions refers to SalesID;"
],
"neg": [
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"most quantity refers to MAX(Quantity);",
"Mountain-100 Silver, 38' is name of product;",
"first ten sales refers to SalesID BETWEEN 1 AND 10;",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"
]
} |
{
"query": "Among all the customers who have purchased ML Bottom Bracket, identify the percentage of sales by Albert I. Ringer?",
"pos": [
"ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);"
],
"neg": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"trading quantity for more than 500 refers to Quantity > 500;",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"Flat Washer 8' is name of product;",
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"quantity is more than 950 refers to Quantity > 950;",
"full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"
]
} |
{
"query": "Calculate the total quantity of products that are gifts.",
"pos": [
"total quantity = SUM(Quantity); gifts refers to Price = 0;"
],
"neg": [
"ML Road Frame-W - Yellow, 40' is name of product;",
"highest quantity refers to MAX(Quantity);",
"highest quantity refers to MAX(Quantity);",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"Mountain-100 Silver, 38' is name of product;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);"
]
} |
{
"query": "Among customers with the last name of Valdez, who purchased the highest quantity?",
"pos": [
"highest quantity refers to MAX(Quantity);"
],
"neg": [
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"most quantity refers to MAX(Quantity);",
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;",
"name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;",
"trading quantity for more than 500 refers to Quantity > 500;",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;",
"highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));",
"Flat Washer 8' is name of product;",
"most expensive product refers to MAX(Price);"
]
} |
{
"query": "List the full name of the customer who purchased the most quantity of products.",
"pos": [
"full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);"
],
"neg": [
"name starting with alphabet \"c\" refers to Name LIKE 'C%';",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);",
"total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;",
"below the average quantity refers to Quantity < AVG(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;",
"External Lock Washer 7' is name of product;"
]
} |
{
"query": "What is the name of the most expensive product?",
"pos": [
"most expensive product refers to MAX(Price);"
],
"neg": [
"Chainring Bolts' is name of product;",
"Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);",
"highest quantity refers to MAX(Quantity);",
"full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;",
"trading quantity for more than 500 refers to Quantity > 500;",
"highest quantity refers to MAX(Quantity);",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;",
"total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"
]
} |
{
"query": "Among the sales ID ranges from 1 to 200, what is the percentage of the products with a price ranging from 200 to 300?",
"pos": [
"sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"
],
"neg": [
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;",
"free gifts refers to Price = 0;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"total amount of sales = SUM(MULTIPLY(Quantity, Price));",
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';",
"top 5 products in terms of Price refers to MAX(Price) LIMIT 5;",
"full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;"
]
} |
{
"query": "List down all of the product names that were placed by sales person with id 10.",
"pos": [
"id refers to SalesPersonID; SalesPersonID = 10"
],
"neg": [
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"Chainring Bolts' is name of product;",
"highest quantity refers to MAX(Quantity);",
"full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);",
"quantity is more than 950 refers to Quantity > 950;",
"price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;",
"highest quantity refers to MAX(Quantity);",
"Hex Nut 9' is name of product;",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"types of HL Touring Frames refers to Name like '%HL Touring Frame%';"
]
} |
{
"query": "Calculate the quantity percentage of the gift products in the total trading quantity.",
"pos": [
"percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;"
],
"neg": [
"quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);",
"sales transactions refers to SalesID;",
"full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));",
"products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;",
"first name starting with alphabet \"s\" refers to FirstName LIKE 's%';",
"most sold refers to MAX(Quantity);",
"full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));",
"trading quantity for more than 500 refers to Quantity > 500;",
"IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);",
"most expensive product refers to MAX(Price);"
]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.