set
dict
{ "query": "What was the phone of number of the client who made the complaint call \"CR0100432\" ?", "pos": [ "complaint call refers to Complaint ID;" ], "neg": [ "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "first name start with alphabet \"B\" refers to first like 'B%'", "first name refers to first; highest priority refers to priority = 2", "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;", "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 name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "average age = avg(age where type = 'TT')", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "sent via Fax refers to Submitted via = 'Fax'", "social number refers to social; most complaints refers to max(count(event.Client_ID))" ] }
{ "query": "Please list the full names of all the male clients in the Pacific division.", "pos": [ "full names = first, middle, last; male refers to sex = 'Male';" ], "neg": [ "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "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;", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'", "full name of the state refers to state_name;", "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;", "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';", "elder refers to age < = 65; last name refers to last", "first name start with alphabet \"B\" refers to first like 'B%'" ] }
{ "query": "What is the average age of clients in South Atlantic?", "pos": [ "in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)" ], "neg": [ "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';", "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%", "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%", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "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 progress refers to Company response to consumer = 'In progress'", "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" ] }
{ "query": "What was the detailed issue did Mr Gunner Omer Fuller complain about?", "pos": [ "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';" ], "neg": [ "how it was submitted refers to \"Submitted via\";", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "full name of the state refers to state_name;", "female refers to sex = 'Female'", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "state refers to state_abbrev; most cities refers to max(count(city))", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "first name start with alphabet \"B\" refers to first like 'B%'", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'" ] }
{ "query": "Which complaint is more urgent, complaint ID CR2400594 or ID CR2405641?", "pos": [ "more urgent refers to MAX(priority);" ], "neg": [ "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "average age = AVG(age);", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "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; most complaints refers to max(count(event.Client_ID))", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "full names = first, middle, last; male refers to sex = 'Male';" ] }
{ "query": "What is the social number of the person who made the most complaints?", "pos": [ "social number refers to social; most complaints refers to max(count(event.Client_ID))" ], "neg": [ "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "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%", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "full names = first, middle, last; 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;", "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%", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "more urgent refers to MAX(priority);" ] }
{ "query": "Which state does the owner of \"[email protected]\" live in? Give the full name of the state.", "pos": [ "full name of the state refers to state_name;" ], "neg": [ "New York City refers to city = 'New York City'", "not in process with an agent refers to outcome ! = 'AGENT';", "billing dispute refers to issue = 'Billing disputes';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "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';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "social number refers to social", "full name refers to first middle last" ] }
{ "query": "What is the full name of client whose email address is [email protected]?", "pos": [ "full name refers to first middle last" ], "neg": [ "first name refers to first; highest priority refers to priority = 2", "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%", "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'", "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;", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "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)", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "New York City refers to city = 'New York City'", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';" ] }
{ "query": "Identify by their ID all clients who did not give their consent permission.", "pos": [ "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;" ], "neg": [ "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "full name refers to first, last", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "complaint call refers to Complaint ID;", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "email id refers to email; calls were hung refers to outcome = 'Hang';", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "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';" ] }
{ "query": "From 2012 to 2015, how many complaints were submitted via email from female clients?", "pos": [ "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'" ], "neg": [ "first name refers to first; highest priority refers to priority = 2", "oldest age refers to max(age); male refers to sex = 'Male'", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "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\");", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "New York City refers to city = 'New York City'", "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;" ] }
{ "query": "How many female clients are there older than 30?", "pos": [ "female refers to sex = 'Female'; older than 30 refers to age > 30" ], "neg": [ "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "male refers to sex = 'Male';", "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'", "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; male refers to sex = 'Male';", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "most five stars refers to MAX(COUNT(stars = 5));", "first name refers to first; highest priority refers to priority = 2" ] }
{ "query": "Which product got the most five stars, and how many?", "pos": [ "most five stars refers to MAX(COUNT(stars = 5));" ], "neg": [ "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "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)", "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 name refers to first, last", "in progress refers to Company response to consumer = 'In progress'", "New York City refers to city = 'New York City'", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18" ] }
{ "query": "What is the percentage of the complaint calls from Mr Mason Javen Lopez has got the consent provided by the customer?", "pos": [ "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';" ], "neg": [ "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "elder refers to age < = 65; last name refers to last", "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)", "complaint call refers to Complaint ID;", "oldest age refers to max(age); male refers to sex = 'Male'", "state refers to state_abbrev; most cities refers to max(count(city))", "first name refers to first; highest priority refers to priority = 2", "social number refers to social", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "female refers to sex = 'Female'" ] }
{ "query": "Calculate the percentage of complaints made by Google account client in server ZOHARI.", "pos": [ "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%" ], "neg": [ "first name refers to first; highest priority refers to priority = 2", "New York City refers to city = 'New York City'", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "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';", "in progress refers to Company response to consumer = 'In progress'" ] }
{ "query": "How many times per year does a credit card customer complain about overlimit fees?", "pos": [ "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'" ], "neg": [ "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';" ] }
{ "query": "Please list the emails of the clients whose complaint date received is 7/3/2014.", "pos": [ "7/3/2014 refers to Date received = '2014-07-03'" ], "neg": [ "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'" ] }
{ "query": "Write down the date received of complaints sent via Fax.", "pos": [ "sent via Fax refers to Submitted via = 'Fax'" ], "neg": [ "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';" ] }
{ "query": "Give the client ID of the complaint received on April 16, 2014 and submitted through fax.", "pos": [ "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'" ], "neg": [ "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'" ] }
{ "query": "What is the first name of clients who have the highest priority?", "pos": [ "first name refers to first; highest priority refers to priority = 2" ], "neg": [ "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" ] }
{ "query": "List date of the review of the Eagle Capital from Indianapolis, Indiana.", "pos": [ "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'" ], "neg": [ "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;" ] }
{ "query": "In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central?", "pos": [ "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%" ], "neg": [ "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';" ] }
{ "query": "Calculate the average age of clients from the Midwest region.", "pos": [ "average age = AVG(age);" ], "neg": [ "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\";" ] }
{ "query": "Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself?", "pos": [ "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;" ], "neg": [ "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%" ] }
{ "query": "How many complaints from customers with a gmail.com email were received by the company in February 2017?", "pos": [ "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';" ], "neg": [ "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;" ] }
{ "query": "Which product received a review from Indianapolis on 2016/10/7?", "pos": [ "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';" ], "neg": [ "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'" ] }
{ "query": "How did Kyran Muller submit his complaint?", "pos": [ "how it was submitted refers to \"Submitted via\";" ], "neg": [ "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;" ] }
{ "query": "What is the average number of complaints on credit cards filed by clients from New York in the 3 consecutive years starting from 2015?", "pos": [ "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;" ], "neg": [ "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';" ] }
{ "query": "Write down the call id of clients whose first name start with alphabet \"B\".", "pos": [ "first name start with alphabet \"B\" refers to first like 'B%'" ], "neg": [ "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';" ] }
{ "query": "For all the complaint callers on 2017/3/27, what percentage of the clients are females?", "pos": [ "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';" ], "neg": [ "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))" ] }
{ "query": "Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.", "pos": [ "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;" ], "neg": [ "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);" ] }
{ "query": "How many clients with the last name Alvarado are from Maryland?", "pos": [ "The abbreviation of Maryland is 'MD';" ], "neg": [ "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');" ] }
{ "query": "In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?", "pos": [ "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%" ], "neg": [ "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';" ] }
{ "query": "What percentage of complaints are from the elderly?", "pos": [ "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%" ], "neg": [ "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';" ] }
{ "query": "How many male clients born in the year 1977 were given priority 0 in their complaints?", "pos": [ "male refers to sex = 'Male';" ], "neg": [ "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'" ] }
{ "query": "Please list all clients' phone numbers and complaint IDs which are still in progress.", "pos": [ "in progress refers to Company response to consumer = 'In progress'" ], "neg": [ "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';" ] }
{ "query": "List the full names of all clients who live in the Pacific division.", "pos": [ "full name refers to first, last" ], "neg": [ "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';" ] }
{ "query": "Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?", "pos": [ "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18" ], "neg": [ "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%" ] }
{ "query": "Which state has the most cities?", "pos": [ "state refers to state_abbrev; most cities refers to max(count(city))" ], "neg": [ "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'" ] }
{ "query": "Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20?", "pos": [ "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';" ], "neg": [ "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;" ] }
{ "query": "What is the address of the client who made a complaint via postal mail on March 14, 2012?", "pos": [ "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'" ], "neg": [ "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'" ] }
{ "query": "Among the elderlies, state the last name of whose complaint is handled in server YIFAT?", "pos": [ "elder refers to age < = 65; last name refers to last" ], "neg": [ "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'" ] }
{ "query": "What was the issue that the client with the longest server time faced?", "pos": [ "longest server time refers to MAX(ser_time);" ], "neg": [ "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" ] }
{ "query": "How many complaints are not in process with an agent?", "pos": [ "not in process with an agent refers to outcome ! = 'AGENT';" ], "neg": [ "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';" ] }
{ "query": "What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?", "pos": [ "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017" ], "neg": [ "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';" ] }
{ "query": "What are the issues of the complains of male clients and products from age 25 and below?", "pos": [ "male refers to sex = 'Male'; age 25 and below refers to age < 25" ], "neg": [ "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;" ] }
{ "query": "What was the serve time for the complaint call from client \"C00007127\" on 2017/2/22?", "pos": [ "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';" ], "neg": [ "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'" ] }
{ "query": "Please list the full names of all the male clients born after the year 1990.", "pos": [ "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;" ], "neg": [ "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'" ] }
{ "query": "Among the teenager clients who use Google account and Microsoft account, which group of client is more than the other?", "pos": [ "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'" ], "neg": [ "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)" ] }
{ "query": "Find the number of service members who complained in Syracuse.", "pos": [ "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';" ], "neg": [ "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');" ] }
{ "query": "In 2015, how many complaints about Billing disputes were sent by clients in Portland?", "pos": [ "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'" ], "neg": [ "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" ] }
{ "query": "What percentage of consumers from Houston disputed complaints?", "pos": [ "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';" ], "neg": [ "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';" ] }
{ "query": "What is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?", "pos": [ "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;" ], "neg": [ "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\"));" ] }
{ "query": "Find and list the names of districts which has below-average stars for Eagle Capital.", "pos": [ "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';" ], "neg": [ "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';" ] }
{ "query": "What is the email id of clients whose calls were hung?", "pos": [ "email id refers to email; calls were hung refers to outcome = 'Hang';" ], "neg": [ "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\"));" ] }
{ "query": "For how long was the complaint filed by Matthew Pierce on 2016/10/28 delayed?", "pos": [ "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");" ], "neg": [ "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%" ] }
{ "query": "List down the full name of clients who have disputed the response from company.", "pos": [ "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'" ], "neg": [ "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%" ] }
{ "query": "In complaints received in 2014, how many of them were submitted via call?", "pos": [ "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'" ], "neg": [ "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" ] }
{ "query": "Which district did the review on 2018/9/11 come from? Give the name of the city.", "pos": [ "on 2018/9/11 refers to Date = '2017-07-22';" ], "neg": [ "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\";" ] }
{ "query": "On which day was the most verbose complaint received?", "pos": [ "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);" ], "neg": [ "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';" ] }
{ "query": "What is the division of the review of 5 stars received on December 17, 2017 for the product Eagle National Mortgage?", "pos": [ "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'" ], "neg": [ "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%'" ] }
{ "query": "List the full name and phone number of clients who submitted the complaint via fax.", "pos": [ "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';" ], "neg": [ "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');" ] }
{ "query": "List by their ID the complaints received by the company on 25/09/2014 that took the longest.", "pos": [ "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\"));" ], "neg": [ "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';" ] }
{ "query": "What is the oldest age of male clients?", "pos": [ "oldest age refers to max(age); male refers to sex = 'Male'" ], "neg": [ "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;" ] }
{ "query": "What is the birth date of the youngest client?", "pos": [ "birth date refers to year, month, day; youngest client refers to max(year, month, day)" ], "neg": [ "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';" ] }
{ "query": "Give me the full birthdate, email and phone number of the youngest client in Indianapolis .", "pos": [ "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'" ], "neg": [ "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);" ] }
{ "query": "Among the complaints received in year 2015, what is total number of complaints timely response and closed with an explanation?", "pos": [ "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'" ], "neg": [ "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';" ] }
{ "query": "How many clients under the age of 35 gave Eagle National Mortgage 1 star?", "pos": [ "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';" ], "neg": [ "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)" ] }
{ "query": "What is the average age of Norwalk clients?", "pos": [ "average age = AVG(age); Norwalk refers to city = 'Norwalk';" ], "neg": [ "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);" ] }
{ "query": "List the products involved in the complaints received on March 2017 via TOVA server.", "pos": [ "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'" ], "neg": [ "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" ] }
{ "query": "For how long did the complaint filed on 2017/3/27 by Rachel Hicks last?", "pos": [ "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';" ], "neg": [ "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'" ] }
{ "query": "How many clients who live in New York City have the complaint outcome as \"AGENT\"?", "pos": [ "New York City refers to city = 'New York City'" ], "neg": [ "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';" ] }
{ "query": "What is the percentage of male clients complaining about their credit cards?", "pos": [ "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';" ], "neg": [ "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" ] }
{ "query": "Give me the social number and state of the client whose phone number is 100-121-8371.", "pos": [ "social number refers to social" ], "neg": [ "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';" ] }
{ "query": "Please list the full name, date of birth, and email id of the elderly clients in descending order of age.", "pos": [ "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;" ], "neg": [ "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';" ] }
{ "query": "How many customers in the Northeast use Microsoft email?", "pos": [ "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'" ], "neg": [ "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);" ] }
{ "query": "Between 1/1/2017 and 4/1/2017, what is the average server time of calls under the server DARMON?", "pos": [ "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)" ], "neg": [ "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';" ] }
{ "query": "How many clients who live in New York City submitted their complaints via fax?", "pos": [ "submitted complaints via fax refers to \"Submitted via\" = 'Fax';" ], "neg": [ "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';" ] }
{ "query": "What is the average age of clients whose complaint type is \"TT\"?", "pos": [ "average age = avg(age where type = 'TT')" ], "neg": [ "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';" ] }
{ "query": "Calculate the percentage of male clients from Indianapolis City.", "pos": [ "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%" ], "neg": [ "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';" ] }
{ "query": "For the client who made the complaint call \"CR0217298\", what was his/her birthday?", "pos": [ "complaint call refers to Complaint ID; birthday = year, month, day;" ], "neg": [ "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" ] }
{ "query": "Pick 5 clients with 0 priority and write down their last name.", "pos": [ "0 priority refers to priority = 0; last name refers to last" ], "neg": [ "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'" ] }
{ "query": "How many complaints on credit cards in the year 2016 were filed by male clients?", "pos": [ "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';" ], "neg": [ "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%'" ] }
{ "query": "How many times does the consumer have no dispute over a non-timely response from the company?", "pos": [ "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'" ], "neg": [ "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';" ] }
{ "query": "What is the full name of the client whose complaint on 2017/3/27 was received by MICHAL?", "pos": [ "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';" ], "neg": [ "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';" ] }
{ "query": "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.", "pos": [ "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'" ], "neg": [ "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';" ] }
{ "query": "List all the server of the phone complaints with a late response from the company.", "pos": [ "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'" ], "neg": [ "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)" ] }
{ "query": "Among the calls from California, what percentage are priority 1?", "pos": [ "California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));" ], "neg": [ "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" ] }
{ "query": "Please list any two clients with their full names who have been tagged as \"Older American\" by the company without seeking their permission.", "pos": [ "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');" ], "neg": [ "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'" ] }
{ "query": "How many complaints were served in 5 minutes or less by DORIT and responded to the customer with an explanation, were made by phone?", "pos": [ "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\";" ], "neg": [ "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%" ] }
{ "query": "How many of the complaints are longer than 15 minutes?", "pos": [ "longer than 15 minutes refers to ser_time > '00:15:00'" ], "neg": [ "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';" ] }
{ "query": "Calculate the average number of complaints received from New Bedford each year which are closed with explanation.", "pos": [ "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';" ], "neg": [ "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" ] }
{ "query": "How many cases of billing dispute issues occurred in the Mountain division?", "pos": [ "billing dispute refers to issue = 'Billing disputes';" ], "neg": [ "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);" ] }
{ "query": "List the cities where the product 'Mishi Kobe Niku' were shipped to.", "pos": [ "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName" ], "neg": [ "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%" ] }
{ "query": "What is the contact title for the person who supplied a product that is 10 boxes x 12 pieces.", "pos": [ "\"10 boxes x 12 pieces\" is the QuantityPerUnit" ], "neg": [ "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)" ] }
{ "query": "Provide the category name of the Chef Anton's Gumbo Mix product that New Orleans Cajun Delights company has.", "pos": [ "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;" ], "neg": [ "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" ] }
{ "query": "Among the employees, give me the full names of those who have less than 4 territories.", "pos": [ "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4" ], "neg": [ "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))" ] }
{ "query": "How many customers are there in the country with the highest number of customers?", "pos": [ "highest number refers to max(count(CustomerID))" ], "neg": [ "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';" ] }
{ "query": "How many companies do ship Northwind's orders?", "pos": [ "companies refers to ShipperID" ], "neg": [ "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'" ] }
{ "query": "Which product have the highest user satisfaction?", "pos": [ "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)" ], "neg": [ "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)" ] }
{ "query": "What are the products that belong to the beverage category?", "pos": [ "products belong to beverage category refer to ProductName where CategoryName = 'beverage';" ], "neg": [ "'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;" ] }