query
stringlengths
24
325
positive
stringlengths
1
580
negative_1
stringlengths
6
580
negative_2
stringlengths
1
576
negative_3
stringlengths
1
576
negative_4
stringlengths
1
580
negative_5
stringlengths
1
580
negative_6
stringlengths
1
580
negative_7
stringlengths
5
576
negative_8
stringlengths
1
576
negative_9
stringlengths
1
580
negative_10
stringlengths
1
580
How many countries are there in the region whose comment description is "asymptotes sublate after the r."
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
European suppliers refer to s_suppkey where r_name = 'EUROPE';
nation refers to n_name; Europe refers to r_name = 'EUROPE'
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
What percentage of customers from France is in the automobile segment?
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
order with the highest total price refers to MAX(o_totalprice);
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
What is the order priority of the order with the highest total price?
order with the highest total price refers to MAX(o_totalprice);
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
Africa refers to r_name = 'Africa';
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
a retail price of over 1900 refers to p_retailprice > 1900
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
Among the customers with an account balance lower than 4000, what is the percentage of the customers in the US?
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
countries in the region of Asia refer to n_name where r_name = 'ASIA';
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
List the names of the countries with the below-average number of customers in ascending order of customer numbers.
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);
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
Customer#000000013 is the name of the customer which refers to c_name;
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
Africa refers to r_name = 'Africa';
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
What is the supply cost for the part "violet olive rose ivory sandy"?
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
a retail price of over 1900 refers to p_retailprice > 1900
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
customer name refers to c_name; the highest discount refers to max(l_discount)
r_comment = 'furiously express accounts wake sly';
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
Calculate the percentage of manufactured parts by Manufacturer#3.
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
countries in the region of Asia refer to n_name where r_name = 'ASIA';
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
Lists all parts supplied by Supplier#000000034.
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
items with the most quantity available refer to p_name where MAX(ps_availqty);
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
Please list the names of all the suppliers for the part with the highest retail price.
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
nation refers to n_name; Europe refers to r_name = 'EUROPE'
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
What is the total price charged for orders shipped by air without shipping instructions?
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
clerk who have served the customer refers to o_clerk
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
close to being out of stock refers to ps_availqty < 10
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
customer refers to c_name; with debt refers to c_acctbal < 0
MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
What is the total price of all orders from the customer with the phone number "627-220-3983"?
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
How many suppliers are from Japan?
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
items with the most quantity available refer to p_name where MAX(ps_availqty);
Name customers in India with account balances over $5000.
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
What are the countries in the region of Asia?
countries in the region of Asia refer to n_name where r_name = 'ASIA';
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
Among all the customers in Germany, how many of them have an account balance of over 1000?
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
items with the most quantity available refer to p_name where MAX(ps_availqty);
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000
order with the highest total price refers to MAX(o_totalprice);
Africa refers to r_name = 'Africa';
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
How many orders in 1998 had a total price under 950?
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
r_comment = 'furiously express accounts wake sly';
How many orders in total have the customers in the household segment made?
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
items with the most quantity available refer to p_name where MAX(ps_availqty);
1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'
The part "hot spring dodger dim light" is ordered in how many orders?
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
How many customers belong to the household segment in Germany?
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
region refers to r_name; the most customers refers to max(count(c_custkey))
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
order with the highest total price refers to MAX(o_totalprice);
List the order key of the orders with a total price between 200000 and 300000.
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate
How many urgent orders did Clerk#000000001 handle in 1997?
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
customer name refers to c_name; the highest discount refers to max(l_discount)
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
close to being out of stock refers to ps_availqty < 10
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
r_comment = 'furiously express accounts wake sly';
How many items were shipped on 4th December, 1993?
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
clerk who have served the customer refers to o_clerk
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
name of the product refers to p_name; the highest retail price refers to p_retailprice
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
Name the part which is most profitable.
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);
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
items with the most quantity available refer to p_name where MAX(ps_availqty);
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
Please list the names of all the suppliers for parts under Brand#55.
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
the highest amount of extended price refers to MAX(l_extendedprice);
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
countries in the region of Asia refer to n_name where r_name = 'ASIA';
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
What is the average price before discount of the top 10 orders with the highest total price?
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
name of the product refers to p_name; the highest retail price refers to p_retailprice
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
addresses refers to s_address; the biggest part refers to max(p_size)
region refers to r_name; the most customers refers to max(count(c_custkey))
European suppliers refer to s_suppkey where r_name = 'EUROPE';
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1
customer name refers to c_name; the highest discount refers to max(l_discount)
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
Among the items shipped in 1994 via truck, how many items were returned?
1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
customer refers to c_name; with debt refers to c_acctbal < 0
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
List line items shipped by truck with delivery time before 1997.
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
name of the product refers to p_name; the highest retail price refers to p_retailprice
items with the most quantity available refer to p_name where MAX(ps_availqty);
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
customers are in debt refer to c_custkey where c_acctbal < 0;
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
How many items did Customer#000021159 order? Calculate those items total charges.
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';
clerk who have served the customer refers to o_clerk
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
order with the highest total price refers to MAX(o_totalprice);
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
Calculate the percentage of countries that belong to the American region.
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
a retail price of over 1900 refers to p_retailprice > 1900
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
What is the total amount of tax charged for the order placed by customer 88931 on 7/13/994?
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'
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
clerk who have served the customer refers to o_clerk
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
r_comment = 'furiously express accounts wake sly';
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
Calculate the total price of orders by Customer#000000013.
Customer#000000013 is the name of the customer which refers to c_name;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
Which country does supplier No.34 come from?
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
region refers to r_name; the most customers refers to max(count(c_custkey))
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
the highest amount of extended price refers to MAX(l_extendedprice);
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
How much is the discounted price of every item that customer 111511 ordered in order 53159? List the names of the parts of every item.
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
region refers to r_name; the most customers refers to max(count(c_custkey))
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
customer name refers to c_name; the highest discount refers to max(l_discount)
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
What are the countries that belong to Africa?
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
customer name refers to c_name; the highest discount refers to max(l_discount)
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
items with the most quantity available refer to p_name where MAX(ps_availqty);
Africa refers to r_name = 'Africa';
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
What is the profit for part no.98768 in order no.1?
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))
European suppliers refer to s_suppkey where r_name = 'EUROPE';
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
customers are in debt refer to c_custkey where c_acctbal < 0;
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
Calculate the difference in the average retail price of parts shipped via ship and air.
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')));
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
countries in the region of Asia refer to n_name where r_name = 'ASIA';
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
a retail price of over 1900 refers to p_retailprice > 1900
items with the most quantity available refer to p_name where MAX(ps_availqty);
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
What is the average number of items shipped each day in April of 1994?
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
customer name refers to c_name; the highest discount refers to max(l_discount)
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
Name the countries that belong in the region with comment description "furiously express accounts wake sly".
r_comment = 'furiously express accounts wake sly';
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
close to being out of stock refers to ps_availqty < 10
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
How many parts have a retail price of over 1900?
a retail price of over 1900 refers to p_retailprice > 1900
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
countries in the region of Asia refer to n_name where r_name = 'ASIA';
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
How many of the items are instructed to be delivered in person?
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
order with the highest total price refers to MAX(o_totalprice);
profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
How many of the line items that have a quantity greater than 40 have been shipped by air?
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
What is the total number of orders made by customers in United States?
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
name of the product refers to p_name; the highest retail price refers to p_retailprice
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
What are the cost prices of large burnished copper?
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;
nation refers to n_name; Europe refers to r_name = 'EUROPE'
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
customer name refers to c_name; the highest discount refers to max(l_discount)
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
Give the name and phone number of the customers who have more than 9000 account balance.
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#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))
customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
close to being out of stock refers to ps_availqty < 10
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
In the parts shipped by rail, how many are of medium priority?
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
the highest amount of extended price refers to MAX(l_extendedprice);
items with the most quantity available refer to p_name where MAX(ps_availqty);
shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
Among the suppliers for the parts ordered in order no.4, how many of them are in debt?
order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
Give the percentage of Japanese suppliers whose account is in debt.
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;
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
the highest amount of extended price refers to MAX(l_extendedprice);
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
What is the region with the most customers?
region refers to r_name; the most customers refers to max(count(c_custkey))
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
Please list the names of all the products under the type "promo brushed steel".
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
countries in the region of Asia refer to n_name where r_name = 'ASIA';
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
What is the difference between the number of returned items and not returned items with the full price of under 16947.7?
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
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
Calculate the percentage of suppliers in Germany.
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
What is the average discount for the parts made by Manufacturer#5?
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;
Africa refers to r_name = 'Africa';
total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
countries in the region of Asia refer to n_name where r_name = 'ASIA';
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
What is the percentage of the European countries among the given countries?
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
What is the nationality of "Customer#000000055"?
"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;
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
r_comment = 'furiously express accounts wake sly';
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
clerk who have served the customer refers to o_clerk
close to being out of stock refers to ps_availqty < 10
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
Give customer No.106936's region name.
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'
List the name of the top ten items with the most quantity available in the descending order of availability.
items with the most quantity available refer to p_name where MAX(ps_availqty);
countries in the region of Asia refer to n_name where r_name = 'ASIA';
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
nation refers to n_name; Europe refers to r_name = 'EUROPE'
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
What are the shipping methods for the orders on 12/31/1994?
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
addresses refers to s_address; the biggest part refers to max(p_size)
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
close to being out of stock refers to ps_availqty < 10
the highest total price refers to MAX(o_totalprice);
What are the total quantities of the items ordered by customer 101660 on 10/5/1995?
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'
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
r_comment = 'furiously express accounts wake sly';
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
Indicate the name of the parts without discount.
name of the part refers to p_name; without discount refers to l_discount = 0.0000
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
How many customers are in Brazil?
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
r_comment = 'furiously express accounts wake sly';
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
order with the highest total price refers to MAX(o_totalprice);
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
How much is the profit for smoke turquoise purple blue salmon that was delivered in person on 5/7/1996?
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';
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
items with the most quantity available refer to p_name where MAX(ps_availqty);
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
clerk who have served the customer refers to o_clerk
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
a retail price of over 1900 refers to p_retailprice > 1900
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
How many European suppliers are there?
European suppliers refer to s_suppkey where r_name = 'EUROPE';
name of the product refers to p_name; the highest retail price refers to p_retailprice
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
a retail price of over 1900 refers to p_retailprice > 1900
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
Please list the phone numbers of all the customers in the household segment and are in Brazil.
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';
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
order with the highest total price refers to MAX(o_totalprice);
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
clerk who have served the customer refers to o_clerk
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
region refers to r_name; the most customers refers to max(count(c_custkey))
account is in debt if c_acctbal < 0;
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'
Give the name of the customer who made an order with Clerk#000000803 on 1997/12/10.
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
r_comment = 'furiously express accounts wake sly';
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
Please list any three customers with debt.
customer refers to c_name; with debt refers to c_acctbal < 0
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
items with the most quantity available refer to p_name where MAX(ps_availqty);
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
Calculate the percentage of customers' accounts in debt.
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
r_comment = 'furiously express accounts wake sly';
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
Customer#000000013 is the name of the customer which refers to c_name;
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
nation refers to n_name; Europe refers to r_name = 'EUROPE'
How many clients from Mozambique required orders with a low priority order?
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
account is in debt if c_acctbal < 0;
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
the highest amount of extended price refers to MAX(l_extendedprice);
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
Customer#000000013 is the name of the customer which refers to c_name;
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
Please list the order keys of all the orders made by a customer whose account is in debt.
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'
name of the part refers to p_name; without discount refers to l_discount = 0.0000
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
What is the name of the customer number 93697 with the total order price of 191918.92?
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
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
customer name refers to c_name; the highest discount refers to max(l_discount)
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
customer refers to c_name; with debt refers to c_acctbal < 0
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
Please give the name of the customer who has made the single order with the highest total price.
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
customers are in debt refer to c_custkey where c_acctbal < 0;
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
account is in debt if c_acctbal < 0;
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
List all the addresses for the suppliers of the biggest parts.
addresses refers to s_address; the biggest part refers to max(p_size)
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
items with the most quantity available refer to p_name where MAX(ps_availqty);
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
How much is the total price of all the orders shipped to customers in Argentina?
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'
nation refers to n_name; Europe refers to r_name = 'EUROPE'
Africa refers to r_name = 'Africa';
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
the highest total price refers to MAX(o_totalprice);
full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7
order with the highest total price refers to MAX(o_totalprice);
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
Among the products under the type "promo brushed steel", how many of them are manufactured by Manufacturer#5?
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
account is in debt if c_acctbal < 0;
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
List the phone numbers of customers whose order priority is urgent.
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
How many different clerks have served the customer with the address uFTe2u518et8Q8UC?
clerk who have served the customer refers to o_clerk
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;
the highest amount of extended price refers to MAX(l_extendedprice);
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
Among the orders made by customers in the household segment, how many of them are urgent?
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
Customer#000000013 is the name of the customer which refers to c_name;
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
customers are in debt refer to c_custkey where c_acctbal < 0;
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
How many part supplies are close to being out of stock?
close to being out of stock refers to ps_availqty < 10
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
Clerk#000000936 dealt with a "Not Specified" order on 1995/3/13, what was the charge for the part of the order shipped by truck?
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';
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
order with the highest total price refers to MAX(o_totalprice);
supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
account is in debt if c_acctbal < 0;
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
customer refers to c_name; with debt refers to c_acctbal < 0
Give the number of Moroccan customers whose account is in debt.
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
nation refers to n_name; Europe refers to r_name = 'EUROPE'
order with the highest total price refers to MAX(o_totalprice);
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
Customer#000000013 is the name of the customer which refers to c_name;
the highest amount of extended price refers to MAX(l_extendedprice);
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
Which supplier can provide the most number of "hot spring dodger dim light"? Please give the supplier's phone number.
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
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
How much higher in percentage is the highest supply cost of the part "hot spring dodger dim light" than the lowest supply cost?
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%
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
List any five parts name in Medium Plated Brass.
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'
Please list all the modes of shipping for the part "burnished seashell gainsboro navajo chocolate".
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
name of customer refers to c_name; account in debt refers to c_acctbal < 0
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
Among all the orders made by a customer in the household segment, what is the highest total price?
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
region refers to r_name; the most customers refers to max(count(c_custkey))
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
customer name refers to c_name; the highest discount refers to max(l_discount)
nation refers to n_name; Europe refers to r_name = 'EUROPE'
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
Please list any three line item numbers that have 10% off.
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
name of the part refers to p_name; without discount refers to l_discount = 0.0000
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
nation refers to n_name; Europe refers to r_name = 'EUROPE'
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
countries in the region of Asia refer to n_name where r_name = 'ASIA';
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
For the order with the total price of 231499.38, what was the discounted price for supplier No. 9397?
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
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;
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?
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';
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' ;
What is the name of the product with the highest retail price?
name of the product refers to p_name; the highest retail price refers to p_retailprice
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)
Which order has a higher priority, order no. 4 or order no. 36?
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);
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
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'
What is the biggest discount among all orders for the part "burnished seashell gainsboro navajo chocolate"?
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
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
List the names of customers whose accounts are in debt.
name of customer refers to c_name; account in debt refers to c_acctbal < 0
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);
What is the account balance of the supplier with the most parts?
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
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))
Among all the customers, what is the percentage of the customer's nation being Germany?
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
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'
List the phone number of the customer who placed orders with a total price of more than $300,000.
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
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)
Among the customers from Morocco, how many customers were in debt?
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;
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);
Name of customer whose order is applied with the highest discount.
customer name refers to c_name; the highest discount refers to max(l_discount)
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'
What is the total price and the order priority of order number 33?
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;
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';
How many customers are in the automobile market segment?
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
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
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;
How many order keys are not applied for the discount?
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
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;
Please list all the brands that contain a part under the type "promo brushed steel".
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
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'