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
Please indicate the names of customers whose orders are eligible for 10% discount with order dates between 1/1/1994 and 1/1/1995.
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'
part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))
close to being out of stock refers to ps_availqty < 10
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
addresses refers to s_address; the biggest part refers to max(p_size)
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
Which nation and region does the Customer#000000008 come from?
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
Africa refers to r_name = 'Africa';
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
r_comment = 'furiously express accounts wake sly';
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
What are the top 2 order keys of the item with the highest amount of extended price?
the highest amount of extended price refers to MAX(l_extendedprice);
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
Africa refers to r_name = 'Africa';
nation refers to n_name; Europe refers to r_name = 'EUROPE'
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
items with the most quantity available refer to p_name where MAX(ps_availqty);
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
How many orders were shipped in 1994?
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
European suppliers refer to s_suppkey where r_name = 'EUROPE';
customer name refers to c_name; the highest discount refers to max(l_discount)
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
Please state the segment, the name, the address, and the phone number of customer number 3.
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
profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
customer refers to c_name; with debt refers to c_acctbal < 0
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
List the country name of the customers in the building marketing segment with an account balance greater than 80% of the average account balance of all customers.
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);
an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
r_comment = 'furiously express accounts wake sly';
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
customer refers to c_name; with debt refers to c_acctbal < 0
Calculate the total profit made by chocolate floral blue coral cyan.
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
region refers to r_name; the most customers refers to max(count(c_custkey))
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
account is in debt if c_acctbal < 0;
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
countries in the region of Asia refer to n_name where r_name = 'ASIA';
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
Which part and supplier have the most profit?
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 no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);
1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
countries in the region of Asia refer to n_name where r_name = 'ASIA';
manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
When was the order with the highest amount of total price shipped?
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
addresses refers to s_address; the biggest part refers to max(p_size)
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
customer name refers to c_name; the highest discount refers to max(l_discount)
account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
How many items shipped by REG AIR were ordered on March 22, 1995?
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';
DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;
clerk who have served the customer refers to o_clerk
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
r_comment = 'furiously express accounts wake sly';
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
What is the average supply cost for the part "hot spring dodger dim light"?
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
customer name refers to c_name; the highest discount refers to max(l_discount)
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
What is the discounted price of line item number 1?
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
items with the most quantity available refer to p_name where MAX(ps_availqty);
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
How many orders of more than 10 items have been returned?
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'; order comments refer to o_comment;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
account is in debt if c_acctbal < 0;
close to being out of stock refers to ps_availqty < 10
part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
Customer#000000013 is the name of the customer which refers to c_name;
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
What was the order date of items with the highest total price?
the highest total price refers to MAX(o_totalprice);
DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;
phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
"Customer#000000055" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
European suppliers refer to s_suppkey where r_name = 'EUROPE';
To which segment belongs the customer that made the most orders in April 1994?
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));
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
List the comments describing orders from customers in the furniture segment.
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
region refers to r_name; the most customers refers to max(count(c_custkey))
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
supplier name refers to s_name; the highest retail price refers to max(p_retailprice)
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
supplier No.34 refers to s_suppkey = 34; country refers to n_name;
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'
the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);
Among the parts shipped by rail on 1st December, 1995, list part names with 10% 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;
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
Please list the order comments of all the orders made by customers in the household segment.
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
nation refers to n_name; Europe refers to r_name = 'EUROPE'
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%
line item number refers to l_linenumber; 10% off refers to l_discount = 0.1
segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3
nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'
In which country do most of the customers come from?
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
customer name refers to c_name; the highest discount refers to max(l_discount)
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
How many of the line items have been shipped by rail with a quantity less than 30?
shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
order with the highest total price refers to MAX(o_totalprice);
customer name refers to c_name; the highest discount refers to max(l_discount)
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
the biggest discount refers to max(l_discount); part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
When was the latest date the items of order no.1 were shipped?
order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
region refers to r_name; the most customers refers to max(count(c_custkey))
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
countries in the region of Asia refer to n_name where r_name = 'ASIA';
Among all the suppliers providing the part "hot spring dodger dim light", how many of them are in Europe?
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
customer name refers to c_name; the highest discount refers to max(l_discount)
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;
region refers to r_name; the most customers refers to max(count(c_custkey))
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
customer refers to c_name; with debt refers to c_acctbal < 0
Africa refers to r_name = 'Africa';
p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0
How many customers in the machinery segment are in debt?
machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
List down the nation keys and names in Africa.
Africa refers to r_name = 'Africa';
automobile market segment refers to c_mktsegment = 'AUTOMOBILE';
AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);
orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;
name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';
What is the supply cost of large plated tin?
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
addresses refers to s_address; the biggest part refers to max(p_size)
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
the highest amount of extended price refers to MAX(l_extendedprice);
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997
Of the orders with a lower delivery priority, how many have an urgent priority order?
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);
name of the country refers to n_name; the highest debt refers to min(s_acctbal)
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
name of the part refers to p_name; without discount refers to l_discount = 0.0000
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;
name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
Among the providers in Argentina, which supplier has an account that is in debt?
Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0
comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'
r_comment = 'furiously express accounts wake sly';
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;
mode of shipping refers to l_shipmode; part "burnished seashell gainsboro navajo chocolate" refers to p_name = 'burnished seashell gainsboro navajo chocolate'
total price = sum(o_totalprice); phone number "627-220-3983" refers to c_phone = '627-220-3983'
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
size refers to p_size; "pink powder drab lawn cyan" or "cornflower sky burlywood green beige" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')
order key refers to l_orderkey; not applied for the discount refers to l_discount = 0
Customer#000000013 is the name of the customer which refers to c_name;
total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'
What are the names of the parts manufactured by manufacturer 3 that have a supply cost of 1,000?
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';
average supply cost refers to avg(ps_supplycost); part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';
r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;
clerk who have served the customer refers to o_clerk
name of customer refers to c_name; account in debt refers to c_acctbal < 0
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
"Customer#000000055" is the name of the customer which refers to c_name; region name refers to r_name;
Please list the names of all the suppliers for the part "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'
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
brand refers to p_brand; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;
customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;
names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
European suppliers refer to s_suppkey where r_name = 'EUROPE';
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
Please indicate the names of the customers whose order with a total price over $300000.
customer name refers to c_name; a total price over $300000 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);
customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000
orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;
customer refers to c_name; with debt refers to c_acctbal < 0
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name
SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';
the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000
How many line items were returned in 1998?
line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998
earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);
segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;
when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);
suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;
What is the comment of the order with the highest total price?
the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;
phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';
supply cost refers to ps_supplycost; part "violet olive rose ivory sandy" refers to p_name = 'violet olive rose ivory sandy'
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
close to being out of stock refers to ps_availqty < 10
the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;
part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))
the highest total price refers to MAX(o_totalprice);
Brazil is the name of the nation which refers to n_name = 'BRAZIL'
phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'
Among all the parts under the type "promo brushed steel", how many of them have a total available quantity from all suppliers of under 5000?
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000
account is in debt if c_acctbal < 0;
Customer#000000013 is the name of the customer which refers to c_name;
Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
countries in the region of Asia refer to n_name where r_name = 'ASIA';
supplier name refers to s_name; part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
Among the customers from the United States, which market segment has the highest number of customers?
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;
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));
a retail price of over 1900 refers to p_retailprice > 1900
part "hot spring dodger dim light" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'
products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';
countries in the region of Asia refer to n_name where r_name = 'ASIA';
MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;
DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);
account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;
part "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'
How many customers are there in India?
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));
quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'
type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'
close to being out of stock refers to ps_availqty < 10
DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;
returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;
1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950
orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';
account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';
the most number refers to max(ps_availqty); "hot spring dodger dim light" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone
How many customers are in debt?
customers are in debt refer to c_custkey where c_acctbal < 0;
household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'
items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';
supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'
country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'
SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';
customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';
close to being out of stock refers to ps_availqty < 10
total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'
product name refers to p_name; type "promo brushed steel" refers to p_type = 'PROMO BRUSHED STEEL'
Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'
Calculate the percentage of sold blades in the total number of transactions.
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
most sold refers to MAX(Quantity);
total quantity = SUM(Quantity); gifts refers to Price = 0;
Mountain-100 Silver, 38' is name of product;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
free gifts refers to Price = 0;
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
Which product has the highest total amount of quantity sold? Calculate its overall total price.
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
below the average quantity refers to Quantity < AVG(Quantity);
name starting with alphabet "c" refers to Name LIKE 'C%';
free gifts refers to Price = 0;
most common last name refers to MAX(COUNT(LastName));
Hex Nut 9' is name of product;
most sold refers to MAX(Quantity);
price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
id refers to SalesPersonID; SalesPersonID = 10
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
What is the full name of employee who sold 1000 units?
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
id refers to SalesPersonID; SalesPersonID = 10
Flat Washer 8' is name of product;
highest quantity refers to MAX(Quantity);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
sales transactions refers to SalesID;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
most expensive product refers to MAX(Price);
most quantity refers to MAX(Quantity);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
What is the name of the product that is most sold by sale person id 20?
most sold refers to MAX(Quantity);
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
total quantity = SUM(Quantity); gifts refers to Price = 0;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
Hex Nut 9' is name of product;
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
first name starting with alphabet "s" refers to FirstName LIKE 's%';
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
Calculate the total sales ids that were sales of Flat Washer 8.
Flat Washer 8' is name of product;
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
total quantity = SUM(Quantity); gifts refers to Price = 0;
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
Hex Nut 9' is name of product;
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
most quantity refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
Chainring Bolts' is name of product;
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
List the customer's ID and last name of the customer that purchased a product with a quantity greater than 90% of the average quantity of all listed products.
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
most expensive product refers to MAX(Price);
total quantity = SUM(Quantity); gifts refers to Price = 0;
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
sales transactions refers to SalesID;
most quantity refers to MAX(Quantity);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
Calculate the total quantity of products with name starting with alphabet "c".
name starting with alphabet "c" refers to Name LIKE 'C%';
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
trading quantity for more than 500 refers to Quantity > 500;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
highest quantity refers to MAX(Quantity);
id refers to SalesPersonID; SalesPersonID = 10
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
most common last name refers to MAX(COUNT(LastName));
Name the customers who received 'Touring Rim' as a free gift.
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
ML Road Frame-W - Yellow, 40' is name of product;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
highest quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
highest quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
highest quantity refers to MAX(Quantity);
Among the products that have price ranges from 100 to 150, what is the customer ID and sales ID of the product with a quantity lower than 25?
price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
quantity is more than 950 refers to Quantity > 950;
highest quantity refers to MAX(Quantity);
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
most common last name refers to MAX(COUNT(LastName));
Mountain-100 Silver, 38' is name of product;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
most quantity refers to MAX(Quantity);
Among the products with product ID lower than 15, how many of them costs 10 and below?
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
Hex Nut 9' is name of product;
trading quantity for more than 500 refers to Quantity > 500;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
External Lock Washer 7' is name of product;
Flat Washer 8' is name of product;
ML Road Frame-W - Yellow, 40' is name of product;
highest quantity refers to MAX(Quantity);
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
most common last name refers to MAX(COUNT(LastName));
Give the full name of the employee who has sold the most quantity.
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
most common last name refers to MAX(COUNT(LastName));
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
Chainring Bolts' is name of product;
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
External Lock Washer 7' is name of product;
highest quantity refers to MAX(Quantity);
free gifts refers to Price = 0;
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
Name the product that sold the most quantity.
most quantity refers to MAX(Quantity);
price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;
Flat Washer 8' is name of product;
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
below the average quantity refers to Quantity < AVG(Quantity);
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
id refers to SalesPersonID; SalesPersonID = 10
most sold refers to MAX(Quantity);
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
Find and list the products that sold below the average quantity.
below the average quantity refers to Quantity < AVG(Quantity);
highest quantity refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
most common last name refers to MAX(COUNT(LastName));
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
ML Road Frame-W - Yellow, 40' is name of product;
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
most quantity refers to MAX(Quantity);
most expensive product refers to MAX(Price);
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
What is the full name of the customer who purchased the highest amount of total price in a single purchase?
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
most expensive product refers to MAX(Price);
Chainring Bolts' is name of product;
most common last name refers to MAX(COUNT(LastName));
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
External Lock Washer 7' is name of product;
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
name starting with alphabet "c" refers to Name LIKE 'C%';
List down product names of free gifts.
free gifts refers to Price = 0;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
quantity is more than 950 refers to Quantity > 950;
most expensive product refers to MAX(Price);
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
sales transactions refers to SalesID;
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
Hex Nut 9' is name of product;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
How many chainring bolts were sold under sales ID 551971?
Chainring Bolts' is name of product;
most sold refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
most common last name refers to MAX(COUNT(LastName));
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
highest quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
External Lock Washer 7' is name of product;
How many employees sold "ML Road Frame-W - Yellow, 40"?
ML Road Frame-W - Yellow, 40' is name of product;
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
highest quantity refers to MAX(Quantity);
Chainring Bolts' is name of product;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
total quantity = SUM(Quantity); gifts refers to Price = 0;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
Calculate the total price for products from id 400 to 500.
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
Hex Nut 9' is name of product;
most expensive product refers to MAX(Price);
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
Flat Washer 8' is name of product;
External Lock Washer 7' is name of product;
highest quantity refers to MAX(Quantity);
below the average quantity refers to Quantity < AVG(Quantity);
first name starting with alphabet "s" refers to FirstName LIKE 's%';
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
total quantity = SUM(Quantity); gifts refers to Price = 0;
Among customers named Kate, who has the highest quantity?
highest quantity refers to MAX(Quantity);
first ten sales refers to SalesID BETWEEN 1 AND 10;
Chainring Bolts' is name of product;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
highest quantity refers to MAX(Quantity);
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
highest quantity refers to MAX(Quantity);
List the first names of employees with trading quantity for more than 500.
trading quantity for more than 500 refers to Quantity > 500;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
most expensive product refers to MAX(Price);
most common last name refers to MAX(COUNT(LastName));
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
name starting with alphabet "c" refers to Name LIKE 'C%';
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
sales transactions refers to SalesID;
List the sales ID of the product with a quantity of 590 and named "External Lock Washer 7".
External Lock Washer 7' is name of product;
first ten sales refers to SalesID BETWEEN 1 AND 10;
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
highest quantity refers to MAX(Quantity);
free gifts refers to Price = 0;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
most common last name refers to MAX(COUNT(LastName));
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
highest quantity refers to MAX(Quantity);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
How much is the total amount of sales handled by Heather McBadden?
total amount of sales = SUM(MULTIPLY(Quantity, Price));
Mountain-100 Silver, 38' is name of product;
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
Flat Washer 8' is name of product;
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
name starting with alphabet "c" refers to Name LIKE 'C%';
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
Tally the product name and quantity of the first ten sales.
first ten sales refers to SalesID BETWEEN 1 AND 10;
most sold refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
most expensive product refers to MAX(Price);
Mountain-100 Silver, 38' is name of product;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
free gifts refers to Price = 0;
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
How many types of "HL Touring Frames" are there?
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
first ten sales refers to SalesID BETWEEN 1 AND 10;
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
below the average quantity refers to Quantity < AVG(Quantity);
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
free gifts refers to Price = 0;
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
Mountain-100 Silver, 38' is name of product;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
sales transactions refers to SalesID;
List the product ID of the top five products, by descending order, in terms of price.
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
first ten sales refers to SalesID BETWEEN 1 AND 10;
trading quantity for more than 500 refers to Quantity > 500;
ML Road Frame-W - Yellow, 40' is name of product;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
highest quantity refers to MAX(Quantity);
free gifts refers to Price = 0;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
How many customer ids have purchased Hex Nut 9?
Hex Nut 9' is name of product;
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
free gifts refers to Price = 0;
name starting with alphabet "c" refers to Name LIKE 'C%';
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
Mountain-100 Silver, 38' is name of product;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
ML Road Frame-W - Yellow, 40' is name of product;
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
first ten sales refers to SalesID BETWEEN 1 AND 10;
How many "Mountain-100 Silver, 38" were sold by Stearns MacFeather?
Mountain-100 Silver, 38' is name of product;
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
most common last name refers to MAX(COUNT(LastName));
highest quantity refers to MAX(Quantity);
most quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
id refers to SalesPersonID; SalesPersonID = 10
Flat Washer 8' is name of product;
How many "Mountain-500 Black 42" were sold in total?
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
most quantity refers to MAX(Quantity);
sales transactions refers to SalesID;
quantity is more than 950 refers to Quantity > 950;
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
total quantity = SUM(Quantity); gifts refers to Price = 0;
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
most sold refers to MAX(Quantity);
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
Hex Nut 9' is name of product;
List down the product name for products from id 1 to 10.
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
id refers to SalesPersonID; SalesPersonID = 10
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
first ten sales refers to SalesID BETWEEN 1 AND 10;
highest quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
Write down the name of products whose sale quantity is more than 950.
quantity is more than 950 refers to Quantity > 950;
most expensive product refers to MAX(Price);
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
highest quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
name starting with alphabet "c" refers to Name LIKE 'C%';
highest quantity refers to MAX(Quantity);
Flat Washer 8' is name of product;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
List down all of the sales IDs for sales handled by sales people with first name starting with alphabet "s".
first name starting with alphabet "s" refers to FirstName LIKE 's%';
most expensive product refers to MAX(Price);
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
free gifts refers to Price = 0;
most common last name refers to MAX(COUNT(LastName));
Mountain-100 Silver, 38' is name of product;
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
trading quantity for more than 500 refers to Quantity > 500;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
What is the average price of products that cost between 100 and 200?
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
first ten sales refers to SalesID BETWEEN 1 AND 10;
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
trading quantity for more than 500 refers to Quantity > 500;
name starting with alphabet "c" refers to Name LIKE 'C%';
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
first name starting with alphabet "s" refers to FirstName LIKE 's%';
highest quantity refers to MAX(Quantity);
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
Among customers with IDs from 1 to 100, what is the highest price of products they purchased?
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
first ten sales refers to SalesID BETWEEN 1 AND 10;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
most sold refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
total quantity = SUM(Quantity); gifts refers to Price = 0;
External Lock Washer 7' is name of product;
List the full names of customers who have purchased products in quantity over 600.
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
most common last name refers to MAX(COUNT(LastName));
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
sales transactions refers to SalesID;
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
ML Road Frame-W - Yellow, 40' is name of product;
highest quantity refers to MAX(Quantity);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
What is the total cost of all the "Road-650, Red, 60" products that Abraham E. Bennet sold?
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
trading quantity for more than 500 refers to Quantity > 500;
name starting with alphabet "c" refers to Name LIKE 'C%';
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
first ten sales refers to SalesID BETWEEN 1 AND 10;
most common last name refers to MAX(COUNT(LastName));
Calculate the revenue produced through sales of HL Road Frame - Red, 56.
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
highest quantity refers to MAX(Quantity);
most expensive product refers to MAX(Price);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
Chainring Bolts' is name of product;
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
name starting with alphabet "c" refers to Name LIKE 'C%';
Give the full name of the customer who bought the most amount of products.
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
below the average quantity refers to Quantity < AVG(Quantity);
highest quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
highest quantity refers to MAX(Quantity);
Chainring Bolts' is name of product;
most expensive product refers to MAX(Price);
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
How many customers share the most common last name?
most common last name refers to MAX(COUNT(LastName));
total amount of sales = SUM(MULTIPLY(Quantity, Price));
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
Chainring Bolts' is name of product;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
trading quantity for more than 500 refers to Quantity > 500;
total quantity = SUM(Quantity); gifts refers to Price = 0;
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
Flat Washer 8' is name of product;
List the full name of customers who spend more than 50,000 in descending order the amount spend.
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
name starting with alphabet "c" refers to Name LIKE 'C%';
highest quantity refers to MAX(Quantity);
most expensive product refers to MAX(Price);
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
total amount of sales = SUM(MULTIPLY(Quantity, Price));
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
total quantity = SUM(Quantity); gifts refers to Price = 0;
External Lock Washer 7' is name of product;
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
Find and list the full name of customers who bought products above-average quantity.
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
quantity is more than 950 refers to Quantity > 950;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
most common last name refers to MAX(COUNT(LastName));
free gifts refers to Price = 0;
sales transactions refers to SalesID;
Flat Washer 8' is name of product;
id refers to SalesPersonID; SalesPersonID = 10
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
most expensive product refers to MAX(Price);
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
How many sales transactions were given by the customer named Joe L. Lopez?
sales transactions refers to SalesID;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
name starting with alphabet "c" refers to Name LIKE 'C%';
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
most quantity refers to MAX(Quantity);
Mountain-100 Silver, 38' is name of product;
first ten sales refers to SalesID BETWEEN 1 AND 10;
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
Among all the customers who have purchased ML Bottom Bracket, identify the percentage of sales by Albert I. Ringer?
ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
trading quantity for more than 500 refers to Quantity > 500;
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
Flat Washer 8' is name of product;
name starting with alphabet "c" refers to Name LIKE 'C%';
quantity is more than 950 refers to Quantity > 950;
full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;
Calculate the total quantity of products that are gifts.
total quantity = SUM(Quantity); gifts refers to Price = 0;
ML Road Frame-W - Yellow, 40' is name of product;
highest quantity refers to MAX(Quantity);
highest quantity refers to MAX(Quantity);
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
Mountain-100 Silver, 38' is name of product;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
Among customers with the last name of Valdez, who purchased the highest quantity?
highest quantity refers to MAX(Quantity);
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
most quantity refers to MAX(Quantity);
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
trading quantity for more than 500 refers to Quantity > 500;
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
Flat Washer 8' is name of product;
most expensive product refers to MAX(Price);
List the full name of the customer who purchased the most quantity of products.
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
name starting with alphabet "c" refers to Name LIKE 'C%';
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;
below the average quantity refers to Quantity < AVG(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
External Lock Washer 7' is name of product;
What is the name of the most expensive product?
most expensive product refers to MAX(Price);
Chainring Bolts' is name of product;
Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);
highest quantity refers to MAX(Quantity);
full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;
trading quantity for more than 500 refers to Quantity > 500;
highest quantity refers to MAX(Quantity);
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
Among the sales ID ranges from 1 to 200, what is the percentage of the products with a price ranging from 200 to 300?
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
free gifts refers to Price = 0;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
total amount of sales = SUM(MULTIPLY(Quantity, Price));
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
List down all of the product names that were placed by sales person with id 10.
id refers to SalesPersonID; SalesPersonID = 10
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
Chainring Bolts' is name of product;
highest quantity refers to MAX(Quantity);
full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);
quantity is more than 950 refers to Quantity > 950;
price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;
highest quantity refers to MAX(Quantity);
Hex Nut 9' is name of product;
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
types of HL Touring Frames refers to Name like '%HL Touring Frame%';
Calculate the quantity percentage of the gift products in the total trading quantity.
percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;
quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);
sales transactions refers to SalesID;
full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));
products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
most sold refers to MAX(Quantity);
full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));
trading quantity for more than 500 refers to Quantity > 500;
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
most expensive product refers to MAX(Price);
List down the product id for products with the highest quantity.
highest quantity refers to MAX(Quantity);
ML Road Frame-W - Yellow, 40' is name of product;
first name starting with alphabet "s" refers to FirstName LIKE 's%';
top 5 products in terms of Price refers to MAX(Price) LIMIT 5;
average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;
most quantity refers to MAX(Quantity);
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
total amount of sales = SUM(MULTIPLY(Quantity, Price));
name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;
revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;
free gifts refers to Price = 0;
Among products bought by Kathryn Ashe, what is the name of the product with the highest quantity?
highest quantity refers to MAX(Quantity);
total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;
sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);
most quantity refers to MAX(Quantity);
full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);
product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;
total amount of sales = SUM(MULTIPLY(Quantity, Price));
highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));
IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);
quantity is more than 950 refers to Quantity > 950;
free gifts refers to Price = 0;
Tell the temperature range of the home weather station of store no.7 on 2014/4/28.
store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)
store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel
store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb
most windy station refers to Max(avgspeed)
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;  when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))
no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum
no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure
store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr
in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))
store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0
State the number of stores that belongs to the weather station which recorded the deepest snowfall.
deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr
no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum
item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'
sunrise before 5 Am refers to sunrise < time ('5:00:00')
store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100
most windy station refers to Max(avgspeed)
during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100
station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'
store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr
How many units of item no.5 were sold in store no.3 on the day the temperature range was the biggest?
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))
item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))
store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100
store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
snow fell more than 5 inches refers to snowfall > 5
item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'
in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'
sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)
store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)
lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'
How many items weren't sold in store 2 on 1/1/2012?
store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'
on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1
in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);  station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1
minimum dew point refers to Min(dewpoint)
sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)
thickest snowfall refers to Max(snowfall); item refers to item_nbr
sunrise before 5 Am refers to sunrise < time ('5:00:00')
during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel
store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr
store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100
How many inches of total precipitation was recorded by the weather station of store no.2 on 2012/12/25?
store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal
sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)
store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'
thickest snowfall refers to Max(snowfall); item refers to item_nbr
no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure
item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'
fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)
most windy station refers to Max(avgspeed)
during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
Which weather station does store no.20 belong to?
store no.20 refers to store_nbr = 20; weather station refers to station_nbr
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))
item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))
fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)
deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr
item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83
on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1
no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure
station number refers to station_nbr; store 17 refers to store_nbr = 17
store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb
In March 2014, which weather stations recorded the highest number of days whose temperature is below the 30-year normal?
in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))
store no.20 refers to store_nbr = 20; weather station refers to station_nbr
store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'
store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'
item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))
in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);  station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1
thickest snowfall refers to Max(snowfall); item refers to item_nbr
no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum
item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'
snow fell more than 5 inches refers to snowfall > 5
How many units of item no.5 were sold in store no.3 on average on the days when the max temperature exceeded 90?
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;  when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))
thickest snowfall refers to Max(snowfall); item refers to item_nbr
store no.20 refers to store_nbr = 20; weather station refers to station_nbr
station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'
station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100
station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)
highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr
store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4
sunrise before 5 Am refers to sunrise < time ('5:00:00')
Show the sea level status recorded by the weather station of store no.19 on 2013/2/24.
store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel
store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb
sunrise before 5 Am refers to sunrise < time ('5:00:00')
store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
station number refers to station_nbr; store 17 refers to store_nbr = 17
most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr
store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr
store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'
in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))
station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'
store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)
What is the earliest sunrise recorded in the stations with no more than 1 store in February 2012?
in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);  station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1
during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
minimum dew point refers to Min(dewpoint)
store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05
sunrise before 5 Am refers to sunrise < time ('5:00:00')
store no.20 refers to store_nbr = 20; weather station refers to station_nbr
lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'
thickest snowfall refers to Max(snowfall); item refers to item_nbr
most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr
store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal
What is the most purchased products during the rainy days in June 2013 in weather station 9?
most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr
store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'
item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'
store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)
highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0
over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))
store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'
during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);  station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1
What is the maximum and minimum temperature for station number 1 on 15 January 2012?
station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'
store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)
no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum
lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'
store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)
station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)
store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'
item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'
most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr
highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0
fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)
What is the sea level and average speed for store number 3 and store number 4?
store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05
no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure
in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))
store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'
thickest snowfall refers to Max(snowfall); item refers to item_nbr
item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';  Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100
on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1
highest recorded heat refers to Max(heat); station refers to station_nbr
item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))
store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)