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 list the emails of the clients whose complaint date received is 7/3/2014.
|
7/3/2014 refers to Date received = '2014-07-03'
|
not in process with an agent refers to outcome ! = 'AGENT';
|
first name refers to first; highest priority refers to priority = 2
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
on 2017/3/27 refers to "Date received" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
oldest age refers to max(age); male refers to sex = 'Male'
|
0 priority refers to priority = 0; last name refers to last
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
Write down the date received of complaints sent via Fax.
|
sent via Fax refers to Submitted via = 'Fax'
|
full name of the state refers to state_name;
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
full name refers to first middle last
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
The abbreviation of Maryland is 'MD';
|
Give the client ID of the complaint received on April 16, 2014 and submitted through fax.
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
full name of the state refers to state_name;
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
New York City refers to city = 'New York City'
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
in progress refers to Company response to consumer = 'In progress'
|
What is the first name of clients who have the highest priority?
|
first name refers to first; highest priority refers to priority = 2
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
oldest age refers to max(age); male refers to sex = 'Male'
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
elder refers to age < = 65; last name refers to last
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
full name refers to first middle last
|
List date of the review of the Eagle Capital from Indianapolis, Indiana.
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
more urgent refers to MAX(priority);
|
full name refers to first, last
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
elder refers to age < = 65; last name refers to last
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central?
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
0 priority refers to priority = 0; last name refers to last
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
elder refers to age < = 65; last name refers to last
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
Calculate the average age of clients from the Midwest region.
|
average age = AVG(age);
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
in progress refers to Company response to consumer = 'In progress'
|
how it was submitted refers to "Submitted via";
|
Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself?
|
on 2016/10/28 refers to Date received = '2016-10-28'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
full name refers to first middle last
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
full name refers to first, last
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
full names = first, middle, last; male refers to sex = 'Male';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
How many complaints from customers with a gmail.com email were received by the company in February 2017?
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
sent via Fax refers to Submitted via = 'Fax'
|
female refers to sex = 'Female'
|
full name refers to first middle last
|
first name start with alphabet "B" refers to first like 'B%'
|
average age = AVG(age);
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
on 2016/10/28 refers to Date received = '2016-10-28'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;
|
Which product received a review from Indianapolis on 2016/10/7?
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
full names = first, middle, last; male refers to sex = 'Male';
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
billing dispute refers to issue = 'Billing disputes';
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
state refers to state_abbrev; most cities refers to max(count(city))
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
How did Kyran Muller submit his complaint?
|
how it was submitted refers to "Submitted via";
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
on 2017/3/27 refers to "Date received" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
What is the average number of complaints on credit cards filed by clients from New York in the 3 consecutive years starting from 2015?
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
on 2018/9/11 refers to Date = '2017-07-22';
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
longest server time refers to MAX(ser_time);
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
Write down the call id of clients whose first name start with alphabet "B".
|
first name start with alphabet "B" refers to first like 'B%'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
The abbreviation of Maryland is 'MD';
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
how it was submitted refers to "Submitted via";
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
full names = first, middle, last; male refers to sex = 'Male';
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
For all the complaint callers on 2017/3/27, what percentage of the clients are females?
|
on 2017/3/27 refers to "Date received" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';
|
percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017;
|
more urgent refers to MAX(priority);
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
full names = first, middle, last; male refers to sex = 'Male';
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT("Complaint ID"), 1.0));
|
state refers to state_abbrev; most cities refers to max(count(city))
|
Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
full names = first, middle, last; male refers to sex = 'Male';
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
How many clients with the last name Alvarado are from Maryland?
|
The abbreviation of Maryland is 'MD';
|
average age = avg(age where type = 'TT')
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
female refers to sex = 'Female'
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
on 2018/9/11 refers to Date = '2017-07-22';
|
phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017;
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
complaint call refers to Complaint ID;
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
full name refers to first middle last
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
full names = first, middle, last; male refers to sex = 'Male';
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
What percentage of complaints are from the elderly?
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
elder refers to age < = 65; last name refers to last
|
most five stars refers to MAX(COUNT(stars = 5));
|
full name refers to first middle last
|
how it was submitted refers to "Submitted via";
|
state refers to state_abbrev; most cities refers to max(count(city))
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
How many male clients born in the year 1977 were given priority 0 in their complaints?
|
male refers to sex = 'Male';
|
not in process with an agent refers to outcome ! = 'AGENT';
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
on 2018/9/11 refers to Date = '2017-07-22';
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT("Complaint ID"), 1.0));
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
Please list all clients' phone numbers and complaint IDs which are still in progress.
|
in progress refers to Company response to consumer = 'In progress'
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
female refers to sex = 'Female'
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
List the full names of all clients who live in the Pacific division.
|
full name refers to first, last
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
first name refers to first; highest priority refers to priority = 2
|
7/3/2014 refers to Date received = '2014-07-03'
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
average age = AVG(age);
|
longest server time refers to MAX(ser_time);
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
state refers to state_abbrev; most cities refers to max(count(city))
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
Which state has the most cities?
|
state refers to state_abbrev; most cities refers to max(count(city))
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%
|
male refers to sex = 'Male';
|
phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20?
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
full name of the state refers to state_name;
|
What is the address of the client who made a complaint via postal mail on March 14, 2012?
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
oldest age refers to max(age); male refers to sex = 'Male'
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
social number refers to social
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
7/3/2014 refers to Date received = '2014-07-03'
|
in progress refers to Company response to consumer = 'In progress'
|
Among the elderlies, state the last name of whose complaint is handled in server YIFAT?
|
elder refers to age < = 65; last name refers to last
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
billing dispute refers to issue = 'Billing disputes';
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
What was the issue that the client with the longest server time faced?
|
longest server time refers to MAX(ser_time);
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
oldest age refers to max(age); male refers to sex = 'Male'
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
first name refers to first; highest priority refers to priority = 2
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
How many complaints are not in process with an agent?
|
not in process with an agent refers to outcome ! = 'AGENT';
|
full name of the state refers to state_name;
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
first name refers to first; highest priority refers to priority = 2
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
how it was submitted refers to "Submitted via";
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
full names = first, middle, last; male refers to sex = 'Male';
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided';
|
What are the issues of the complains of male clients and products from age 25 and below?
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
New York City refers to city = 'New York City'
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
longest server time refers to MAX(ser_time);
|
how it was submitted refers to "Submitted via";
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
complaint call refers to Complaint ID;
|
What was the serve time for the complaint call from client "C00007127" on 2017/2/22?
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
in progress refers to Company response to consumer = 'In progress'
|
California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT("Complaint ID"), 1.0));
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017;
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
billing dispute refers to issue = 'Billing disputes';
|
full name of the state refers to state_name;
|
full name refers to first, last
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
Please list the full names of all the male clients born after the year 1990.
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
on 2018/9/11 refers to Date = '2017-07-22';
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
female refers to sex = 'Female'
|
sent via Fax refers to Submitted via = 'Fax'
|
Among the teenager clients who use Google account and Microsoft account, which group of client is more than the other?
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
oldest age refers to max(age); male refers to sex = 'Male'
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)
|
Find the number of service members who complained in Syracuse.
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
oldest age refers to max(age); male refers to sex = 'Male'
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
billing dispute refers to issue = 'Billing disputes';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided';
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
In 2015, how many complaints about Billing disputes were sent by clients in Portland?
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
full name refers to first middle last
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
more urgent refers to MAX(priority);
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
full name refers to first, last
|
What percentage of consumers from Houston disputed complaints?
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
complaint call refers to Complaint ID;
|
full name of the state refers to state_name;
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
average age = avg(age where type = 'TT')
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
What is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?
|
percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017;
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
full name refers to first middle last
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
0 priority refers to priority = 0; last name refers to last
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
longest server time refers to MAX(ser_time);
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
Find and list the names of districts which has below-average stars for Eagle Capital.
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided';
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
elder refers to age < = 65; last name refers to last
|
average age = avg(age where type = 'TT')
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
full name of the state refers to state_name;
|
full names = first, middle, last; male refers to sex = 'Male';
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
average age = AVG(age);
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
What is the email id of clients whose calls were hung?
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
0 priority refers to priority = 0; last name refers to last
|
first name start with alphabet "B" refers to first like 'B%'
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
oldest age refers to max(age); male refers to sex = 'Male'
|
full name refers to first middle last
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
not in process with an agent refers to outcome ! = 'AGENT';
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
For how long was the complaint filed by Matthew Pierce on 2016/10/28 delayed?
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
sent via Fax refers to Submitted via = 'Fax'
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
how it was submitted refers to "Submitted via";
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
List down the full name of clients who have disputed the response from company.
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
0 priority refers to priority = 0; last name refers to last
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
sent via Fax refers to Submitted via = 'Fax'
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
full name refers to first middle last
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
more urgent refers to MAX(priority);
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
In complaints received in 2014, how many of them were submitted via call?
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
Which district did the review on 2018/9/11 come from? Give the name of the city.
|
on 2018/9/11 refers to Date = '2017-07-22';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
sent via Fax refers to Submitted via = 'Fax'
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
female refers to sex = 'Female'
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
in progress refers to Company response to consumer = 'In progress'
|
oldest age refers to max(age); male refers to sex = 'Male'
|
male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
On which day was the most verbose complaint received?
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
New York City refers to city = 'New York City'
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
not in process with an agent refers to outcome ! = 'AGENT';
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
What is the division of the review of 5 stars received on December 17, 2017 for the product Eagle National Mortgage?
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
complaint call refers to Complaint ID;
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
full name refers to first, last
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
first name start with alphabet "B" refers to first like 'B%'
|
List the full name and phone number of clients who submitted the complaint via fax.
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
average age = AVG(age);
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
List by their ID the complaints received by the company on 25/09/2014 that took the longest.
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'
|
first name start with alphabet "B" refers to first like 'B%'
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
female refers to sex = 'Female'
|
more urgent refers to MAX(priority);
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
sent via Fax refers to Submitted via = 'Fax'
|
social number refers to social
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
not in process with an agent refers to outcome ! = 'AGENT';
|
What is the oldest age of male clients?
|
oldest age refers to max(age); male refers to sex = 'Male'
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
sent via Fax refers to Submitted via = 'Fax'
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided';
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
What is the birth date of the youngest client?
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
social number refers to social
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
average age = AVG(age);
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
oldest age refers to max(age); male refers to sex = 'Male'
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
on 2018/9/11 refers to Date = '2017-07-22';
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
Give me the full birthdate, email and phone number of the youngest client in Indianapolis .
|
full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
The abbreviation of Maryland is 'MD';
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
billing dispute refers to issue = 'Billing disputes';
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
most five stars refers to MAX(COUNT(stars = 5));
|
elder refers to age < = 65; last name refers to last
|
more urgent refers to MAX(priority);
|
Among the complaints received in year 2015, what is total number of complaints timely response and closed with an explanation?
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
social number refers to social
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
full name of the state refers to state_name;
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
first name refers to first; highest priority refers to priority = 2
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
not in process with an agent refers to outcome ! = 'AGENT';
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
How many clients under the age of 35 gave Eagle National Mortgage 1 star?
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
full name refers to first, last
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
longest server time refers to MAX(ser_time);
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
What is the average age of Norwalk clients?
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
state refers to state_abbrev; most cities refers to max(count(city))
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
full name refers to first middle last
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
The abbreviation of Maryland is 'MD';
|
in progress refers to Company response to consumer = 'In progress'
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
full names = first, middle, last; male refers to sex = 'Male';
|
more urgent refers to MAX(priority);
|
List the products involved in the complaints received on March 2017 via TOVA server.
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
male refers to sex = 'Male';
|
on 2016/10/28 refers to Date received = '2016-10-28'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
in progress refers to Company response to consumer = 'In progress'
|
in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
average age = avg(age where type = 'TT')
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
For how long did the complaint filed on 2017/3/27 by Rachel Hicks last?
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
elder refers to age < = 65; last name refers to last
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
average age = avg(age where type = 'TT')
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
most five stars refers to MAX(COUNT(stars = 5));
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
How many clients who live in New York City have the complaint outcome as "AGENT"?
|
New York City refers to city = 'New York City'
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
in progress refers to Company response to consumer = 'In progress'
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
most five stars refers to MAX(COUNT(stars = 5));
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
What is the percentage of male clients complaining about their credit cards?
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
full name refers to first, last
|
on 2016/10/28 refers to Date received = '2016-10-28'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
full name of the state refers to state_name;
|
first name refers to first; highest priority refers to priority = 2
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
0 priority refers to priority = 0; last name refers to last
|
Give me the social number and state of the client whose phone number is 100-121-8371.
|
social number refers to social
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided';
|
full name refers to first, last
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
Please list the full name, date of birth, and email id of the elderly clients in descending order of age.
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
0 priority refers to priority = 0; last name refers to last
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
average age = AVG(age);
|
longest server time refers to MAX(ser_time);
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
first name start with alphabet "B" refers to first like 'B%'
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
How many customers in the Northeast use Microsoft email?
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27';
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
social number refers to social
|
full name of the state refers to state_name;
|
billing dispute refers to issue = 'Billing disputes';
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
average age = AVG(age);
|
Between 1/1/2017 and 4/1/2017, what is the average server time of calls under the server DARMON?
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
average age = AVG(age);
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
first name refers to first; highest priority refers to priority = 2
|
complaint call refers to Complaint ID;
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
billing dispute refers to issue = 'Billing disputes';
|
How many clients who live in New York City submitted their complaints via fax?
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
first name refers to first; highest priority refers to priority = 2
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
in progress refers to Company response to consumer = 'In progress'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
on 2018/9/11 refers to Date = '2017-07-22';
|
What is the average age of clients whose complaint type is "TT"?
|
average age = avg(age where type = 'TT')
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
first name start with alphabet "B" refers to first like 'B%'
|
service members refers to client.client_id; Syracuse refers to city = 'Syracuse';
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
male refers to sex = 'Male';
|
Calculate the percentage of male clients from Indianapolis City.
|
male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
longest server time refers to MAX(ser_time);
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
state refers to state_abbrev; most cities refers to max(count(city))
|
on 2016/10/28 refers to Date received = '2016-10-28'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017;
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
submitted complaints via fax refers to "Submitted via" = 'Fax';
|
For the client who made the complaint call "CR0217298", what was his/her birthday?
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
New York City refers to city = 'New York City'
|
in progress refers to Company response to consumer = 'In progress'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
longest server time refers to MAX(ser_time);
|
male refers to sex = 'Male';
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
0 priority refers to priority = 0; last name refers to last
|
Pick 5 clients with 0 priority and write down their last name.
|
0 priority refers to priority = 0; last name refers to last
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received");
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
first name refers to first; highest priority refers to priority = 2
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017
|
male refers to sex = 'Male';
|
credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'
|
How many complaints on credit cards in the year 2016 were filed by male clients?
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
0 priority refers to priority = 0; last name refers to last
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
most five stars refers to MAX(COUNT(stars = 5));
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'
|
in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
average age = avg(age where type = 'TT')
|
on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'
|
How many times does the consumer have no dispute over a non-timely response from the company?
|
no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'
|
in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
on 2018/9/11 refers to Date = '2017-07-22';
|
state refers to state_abbrev; most cities refers to max(count(city))
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
What is the full name of the client whose complaint on 2017/3/27 was received by MICHAL?
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
What is the social number of the client who has the longest delay in his/her complaint? Calculate the days of delay and state the company's response to the consumer.
|
social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'
|
full names = first, middle, last; male refers to sex = 'Male';
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
full name of the state refers to state_name;
|
full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
The abbreviation of Maryland is 'MD';
|
List all the server of the phone complaints with a late response from the company.
|
phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'
|
ID of the complaints refers to "Complaint ID"; on 25/09/2014 refers to "Date sent to company" = '2014-09-25'; took the longest = MAX(SUBTRACT("Date sent to company", "Date received"));
|
state refers to state_abbrev; most cities refers to max(count(city))
|
full name refers to first middle last
|
5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;
|
not in process with an agent refers to outcome ! = 'AGENT';
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
female refers to sex = 'Female'
|
between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)
|
Among the calls from California, what percentage are priority 1?
|
California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT("Complaint ID"), 1.0));
|
The abbreviation of Maryland is 'MD';
|
full name = first, middle, last; submitted the complaint via fax refers to "Submitted via" = 'fax';
|
average age = AVG(age);
|
difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
7/3/2014 refers to Date received = '2014-07-03'
|
April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'
|
age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
Please list any two clients with their full names who have been tagged as "Older American" by the company without seeking their permission.
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';
|
California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT("Complaint ID"), 1.0));
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
social number refers to social
|
first name start with alphabet "B" refers to first like 'B%'
|
male refers to sex = 'Male';
|
on 2017/3/27 refers to "Date received" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';
|
average age = AVG(age);
|
credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'
|
How many complaints were served in 5 minutes or less by DORIT and responded to the customer with an explanation, were made by phone?
|
served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to "Company response to consumer" = 'Closed with explanation'; made by refers to "Submitted via";
|
full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL';
|
did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;
|
address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'
|
average age = AVG(age);
|
credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';
|
serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22';
|
full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty');
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
female refers to sex = 'Female'; older than 30 refers to age > 30
|
Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%
|
How many of the complaints are longer than 15 minutes?
|
longer than 15 minutes refers to ser_time > '00:15:00'
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';
|
in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18
|
most five stars refers to MAX(COUNT(stars = 5));
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
social number refers to social; most complaints refers to max(count(event.Client_ID))
|
average age = avg(age where type = 'TT')
|
complaint call refers to Complaint ID;
|
average age = AVG(age);
|
not in process with an agent refers to outcome ! = 'AGENT';
|
Calculate the average number of complaints received from New Bedford each year which are closed with explanation.
|
average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';
|
detailed issue refers to Sub-issue; Mr refers to sex = 'Male';
|
5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
female refers to sex = 'Female'
|
average age = AVG(age); Norwalk refers to city = 'Norwalk';
|
percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';
|
gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28';
|
The abbreviation of Maryland is 'MD';
|
complaint call refers to Complaint ID; birthday = year, month, day;
|
elder refers to age < = 65; last name refers to last
|
How many cases of billing dispute issues occurred in the Mountain division?
|
billing dispute refers to issue = 'Billing disputes';
|
The abbreviation of Maryland is 'MD';
|
full names = first, middle, last; male refers to sex = 'Male'; year > 1990;
|
email id refers to email; calls were hung refers to outcome = 'Hang';
|
Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';
|
birth date refers to year, month, day; youngest client refers to max(year, month, day)
|
from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'
|
male refers to sex = 'Male'; age 25 and below refers to age < 25
|
phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'
|
day received refers to "Date received"; most verbose complaint refers to MAX(ser_time);
|
average age = AVG(age);
|
List the cities where the product 'Mishi Kobe Niku' were shipped to.
|
cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName
|
most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ; total sales refers to sum(MULTIPLY(Quantity, UnitPrice))
|
discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))
|
reported to employee id 5 refers to ReportsTo = 5
|
via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))
|
"Eastern" is the RegionDescription
|
average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'
|
'Pavlova' is a ProductName
|
"Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))
|
full name refers to FirstName, LastName
|
percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%
|
What is the contact title for the person who supplied a product that is 10 boxes x 12 pieces.
|
"10 boxes x 12 pieces" is the QuantityPerUnit
|
biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry
|
territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';
|
full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))
|
most ordered refers to max(COUNT(OrderID))
|
order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));
|
"American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID
|
"Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))
|
'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)
|
territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';
|
beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)
|
Provide the category name of the Chef Anton's Gumbo Mix product that New Orleans Cajun Delights company has.
|
'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;
|
UnitsInStock < UnitsOnOrder;
|
freight of over 800 refers to Freight > 800
|
home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';
|
Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))
|
total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;
|
August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))
|
"USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'
|
'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title
|
"Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity)
|
'Pavlova' is a ProductName
|
Among the employees, give me the full names of those who have less than 4 territories.
|
less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4
|
female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;
|
the least shipped product refers ProductName where MIN(Quantity);
|
most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'
|
'Blondesddsl pre et fils' is a CompanyName
|
freight of over 800 refers to Freight > 800
|
beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)
|
HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';
|
Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';
|
'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100
|
Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))
|
How many customers are there in the country with the highest number of customers?
|
highest number refers to max(count(CustomerID))
|
full name refers to LastName, FirstName
|
Morristown refers to TerritoryDescription = 'Morristown'
|
"Eastern" is the RegionDescription
|
more than thirty dollars per unit refers to UnitPrice > 30
|
via United Package refers to CompanyName = 'United Package'
|
the least shipped product refers ProductName where MIN(Quantity);
|
Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20
|
most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'
|
Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;
|
located in Germany refers to Country = 'Germany';
|
How many companies do ship Northwind's orders?
|
companies refers to ShipperID
|
highest salary refers to MAX(Salary); full name = FirstName, LastName;
|
located in Germany refers to Country = 'Germany';
|
most customers refers to max(count(Relationship))
|
highest number of products refers to MAX(COUNT(ProductID))
|
shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;
|
average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;
|
UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;
|
supplied by refers to CompanyName
|
suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)
|
GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'
|
Which product have the highest user satisfaction?
|
product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)
|
GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'
|
order number 10933 refers to OrderID = 10933;
|
Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;
|
"Eastern Region" refers to RegionDescription = 'Eastern'; "Southern Region" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))
|
freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;
|
Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone
|
most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName
|
less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4
|
shipped to the city of Paris refers to ShipCity = 'Paris';
|
Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)
|
What are the products that belong to the beverage category?
|
products belong to beverage category refer to ProductName where CategoryName = 'beverage';
|
'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;
|
Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;
|
"Formaggi Fortini s.r.l." is the CompanyName; average unit price = AVG(UnitPrice)
|
average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';
|
territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';
|
supplied by refers to CompanyName
|
Eastern Region refers to RegionDescription = 'Eastern';
|
descriptions refers to TerritoryDescription; region refers to RegionDescription
|
Vegie-spread product refers to ProductName = 'Vegie-spread';total payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))
|
total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;
|
What are the ID and description of the condiments category?
|
condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID
|
'Pavlova' is a ProductName
|
full name refers to FirstName, LastName; brith day refers to BirthDate
|
is a UK citizen refers to Country = 'UK'
|
Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20
|
sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))
|
via United Package refers to CompanyName = 'United Package'
|
full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))
|
no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';
|
'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle
|
order number 10933 refers to OrderID = 10933;
|
What is the full name of the employee with the highest salary?
|
full name refers to FirstName LastName; highest salary refers to max(Salary)
|
'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100
|
full name = FirstName, LastName; youngest refers to latest BirthDate;
|
full name refers to FirstName, LastName; brith day refers to BirthDate
|
most common product refers to max(count(ProductID)); customer from Germany refers to Country = 'Germany'
|
territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';
|
products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName
|
is a UK citizen refers to Country = 'UK'
|
most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'
|
most total sales refers to Max(SaleAmount); companies refers to CompanyName
|
highest salary refers to max(salary); position refers to Title
|
Which employee has the highest salary? Please give his or her full name.
|
highest salary refers to MAX(Salary); full name = FirstName, LastName;
|
"Eastern" is the RegionDescription
|
Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';
|
names of all territories refers to TerritoryDescription;
|
highest salary refers to max(salary); position refers to Title
|
the largest quantity of "Manjimup Dried Apples" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';
|
Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20
|
via United Package refers to CompanyName = 'United Package'
|
'USA' is a country; supplier refers to CompanyName
|
Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;
|
shipping company refers to Shippers; phone number refers to Phone
|
Identify the customer, which placed the largest order in terms of value.
|
value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)
|
"American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID
|
suppliers refers to CompanyName; 'cheeses' is a Description
|
discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)
|
"Uncle Bob's Organic Dried Pears" is the ProductName; total order quantity refers to Sum(Quantity)
|
descriptions refers to TerritoryDescription; region refers to RegionDescription
|
total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120
|
most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'
|
ProductName = 'Thringer Rostbratwurst';
|
the highest unit price refers to MAX(UnitPrice);
|
highest salary refers to Max(Salary)
|
Please list the phone numbers of the suppliers of the products that have a higher units on order than units in stock.
|
UnitsInStock < UnitsOnOrder;
|
orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)
|
suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)
|
descriptions refers to TerritoryDescription; region refers to RegionDescription
|
through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%
|
how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;
|
Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName
|
name of product refers to ProductName; ID refers to ProductID
|
name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))
|
Bigfoot Breweries is the name of the company; products refer to ProductName;
|
Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;
|
Among the employees who handled orders to Brazil, who has the highest salary and calculate the average salary of them.
|
orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)
|
female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;
|
"Gai pturage" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100
|
Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;
|
full name refers to FirstName, LastName
|
in the Eastern region refers to RegionDescription = 'Eastern'
|
full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';
|
in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)
|
UnitsInStock < UnitsOnOrder;
|
'Confections' is a CompanyName;
|
highest number of products refers to MAX(COUNT(ProductID))
|
What is the average unit price of Tokyo Traders' products?
|
"Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice)
|
from UK refers to Country = 'UK'
|
"Brazil" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12
|
Tokyo Traders refers to CompanyName = 'Tokyo Traders'
|
Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20
|
in the Eastern region refers to RegionDescription = 'Eastern'
|
highest salary refers to max(salary); position refers to Title
|
Drachenblut Delikatessen is the company name;
|
home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';
|
Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;
|
shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;
|
Calculate the average price of products shipped to the UK.
|
average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'
|
'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100
|
highest number of territories refers to max(TerritoryID)
|
average salary = AVG(Salary)
|
"Madrid" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100
|
cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName
|
average sales = AVG(ProductSales)
|
name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'
|
ProductName = 'Thringer Rostbratwurst';
|
discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))
|
"Tokyo Traders" is the CompanyName; average unit price = AVG(UnitPrice)
|
List the company names of customers from the city with the most customers.
|
most customers refers to max(count(Relationship))
|
"USA" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'
|
'Confections' is a CompanyName;
|
'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID
|
companies refers to CompanyName;
|
less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4
|
full name refers to FirstName, LastName
|
region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia'
|
total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;
|
'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100
|
Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4
|
What is the homepage link for the company that supplies the product "Thringer Rostbratwurst"?
|
ProductName = 'Thringer Rostbratwurst';
|
'Blondesddsl pre et fils' is a CompanyName
|
average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;
|
"10 boxes x 12 pieces" is the QuantityPerUnit
|
"Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan
|
companies refers to CompanyName;
|
9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;
|
no longer sold refers to Discontinued = 1; products refers to ProductName
|
from USA refers to Country = 'USA'
|
'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle
|
Vice President of Sales refers to Title = 'Vice President, Sales';
|
Is (206) 555-1189 the home phone number for Laura Callahan?
|
"Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan
|
companies refers to CompanyName;
|
total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;
|
discontinued product refers to Discontinued = 1; supplier refers to CompanyName
|
Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';
|
more than thirty dollars per unit refers to UnitPrice > 30
|
Tokyo Traders refers to CompanyName = 'Tokyo Traders'
|
ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))
|
Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;
|
United States of America refers to Country = 'USA'
|
"Eastern" is the RegionDescription
|
How many employees have obtained a doctorate?
|
doctorate refers to TitleOfCourtesy = 'Dr.;
|
name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))
|
'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;
|
home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';
|
"New Orleans Cajun Delights" is the CompanyName; discontinued refers to Discontinued = 1
|
'USA' is a country; supplier refers to CompanyName
|
"Seafood" is the CategoryName; order quantity of more than 50 refers to Quantity > 50
|
full name refers to FirstName, LastName; Denver is a TerritoryDescription
|
name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';
|
required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName
|
"American" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID
|
Find the total payment of the orders by customers from San Francisco.
|
from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))
|
in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName
|
name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'
|
most expensive product refers to ProductName where MAX(UnitPrice);
|
'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID
|
"Speedy Express" is the name of the shipping company; orders refer to OrderID;
|
shipped to France refers to ShipCountry = 'France';
|
product refers to ProductName;
|
product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)
|
Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')
|
full name refers to FirstName, LastName; brith day refers to BirthDate
|
What is the full name of the employee who is in charge of the territory of Denver?
|
full name refers to FirstName, LastName; Denver is a TerritoryDescription
|
newest hired refers to latest HireDate; full name = FirstName, LastName;
|
August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))
|
"10 boxes x 12 pieces" is the QuantityPerUnit
|
Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo’ represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;
|
sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))
|
Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;
|
orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)
|
shipped to France refers to ShipCountry = 'France';
|
most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'
|
High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';
|
Give the number of orders that were shipped by "Federal Shipping".
|
Federal Shipping refers to CompanyName = 'Federal Shipping';
|
shipped to the city of Paris refers to ShipCity = 'Paris';
|
value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)
|
average sales = AVG(ProductSales)
|
descriptions refers to TerritoryDescription; region refers to RegionDescription
|
region refers to RegionID; "Columbia" refers to TerritoryDescription = 'Columbia'
|
"Laura Callahan" refers to FirstName = 'Laura AND LastName = 'Callahan
|
Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))
|
highest number refers to max(count(CustomerID))
|
through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%
|
category refers to CategoryName; tofu refers to ProductName = 'Tofu';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.