instruction
stringlengths 646
49.5k
| input
stringclasses 1
value | output
stringlengths 23
804
|
---|---|---|
Solve the following sql problem:
Lists the last name of all clients who made a PS-type complaint and were served by TOVA.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT t1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'PS' AND T2.server = 'TOVA' |
|
Solve the following sql problem:
How many clients under the age of 35 gave Eagle National Mortgage 1 star?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T2.age) FROM reviews AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.Product = 'Eagle National Mortgage' AND T1.Stars = 1 AND T2.age < 35 |
|
Solve the following sql problem:
How many male clients born in the year 1977 were given priority 0 in their complaints?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.sex = 'Male' AND T2.priority = 0 AND T1.year = 1997 |
|
Solve the following sql problem:
List by name all customers who provided consent for the tag Older American.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Tags = 'Older American' AND T2.`Consumer consent provided?` != 'N/A' AND T2.`Consumer consent provided?` IS NOT NULL AND T2.`Consumer consent provided?` != '' |
|
Solve the following sql problem:
What is the name of the state in which there have been the largest number of complaints with priority 0?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.state FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id INNER JOIN state AS T4 ON T3.state_abbrev = T4.StateCode WHERE T1.priority = 0 GROUP BY T2.state ORDER BY COUNT(T2.state) DESC LIMIT 1 |
|
Solve the following sql problem:
How many complaints made by women and served after 3 pm received a timely response from the company?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.sex = 'Female' AND T1.ser_start BETWEEN '15:00:01' AND '23:59:59' AND T3.`Timely response?` = 'Yes' |
|
Solve the following sql problem:
How many complaints were served in 5 minutes or less by DORIT and responded to the customer with an explanation, were made by phone?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.ser_time < '00:05:00' AND T1.server = 'DORIT' AND T2.`Submitted via` = 'Phone' AND T2.`Company response to consumer` = 'Closed with explanation' |
|
Solve the following sql problem:
How many clients with the last name Alvarado are from Maryland?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T1.state_abbrev = T3.StateCode WHERE T2.last = 'Alvarado' AND T2.state = 'MD' |
|
Solve the following sql problem:
How many reviews by people between 30 and 50 years include the word 'great'?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.Reviews) FROM reviews AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.age BETWEEN 30 AND 50 AND T1.Reviews LIKE '%great%' |
|
Solve the following sql problem:
What is the full address of the customers who, having received a timely response from the company, have dispute about that response?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'Yes' AND T2.`Consumer disputed?` = 'Yes' |
|
Solve the following sql problem:
How many complaints from female clients born in the year 2000 were not sent through the web?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T2.`Submitted via`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Female' AND T1.year = 2000 AND T2.`Submitted via` != 'Web' |
|
Solve the following sql problem:
List all the complaints narratives made by the customer named Brenda and last name Mayer.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.`Consumer complaint narrative` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Brenda' AND T1.last = 'Mayer' |
|
Solve the following sql problem:
How many complaints from customers with a gmail.com email were received by the company in February 2017?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.email) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE (T2.`Date received` LIKE '2017-02%' OR T2.`Date received` LIKE '2017-01%') AND T1.email LIKE '%@gmail.com' |
|
Solve the following sql problem:
What is the average number of stars given by Oregon clients in their reviews?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(T3.Stars) AS REAL) / COUNT(T3.Stars) AS average FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN reviews AS T3 ON T2.district_id = T3.district_id WHERE T1.State = 'Oregon' |
|
Solve the following sql problem:
What percentage of clients who sent their complaints by postal mail are age 50 and older?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.age > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Submitted via`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' |
|
Solve the following sql problem:
What is the average age of Norwalk clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(T1.age) AS REAL) / COUNT(T1.age) AS average FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Norwalk' |
|
Solve the following sql problem:
How many clients who live in Kansas City provided a 1-star review?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.Stars) FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Kansas City' AND T1.Stars = 1 |
|
Solve the following sql problem:
Which state has the highest number of clients who gave a 5-star review?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.state_abbrev FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 5 GROUP BY T2.state_abbrev ORDER BY COUNT(T2.state_abbrev) DESC LIMIT 1 |
|
Solve the following sql problem:
Which region does Noah Thompson live in?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Noah' AND T1.last = 'Thompson' |
|
Solve the following sql problem:
How did Kyran Muller submit his complaint?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T2.`Submitted via` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kyran' AND T1.last = 'Muller' |
|
Solve the following sql problem:
What are the products that people who were born after 2005 complain about?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year > 2005 |
|
Solve the following sql problem:
How long was Kendall Allen's complaint about her credit card?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T3.ser_time FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN callcenterlogs AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.first = 'Kendall' AND T2.last = 'Allen' AND T2.sex = 'Female' AND T1.Product = 'Credit card' |
|
Solve the following sql problem:
What was the issue that the client with the longest server time faced?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Issue FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.ser_time = ( SELECT MAX(ser_time) FROM callcenterlogs ) |
|
Solve the following sql problem:
How many clients who live in New York City submitted their complaints via fax?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'New York City' AND T2.`Submitted via` = 'Fax' |
|
Solve the following sql problem:
What is the percentage of male clients complaining about their credit cards?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.sex = 'Male' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card' |
|
Solve the following sql problem:
Please list any two clients with their full names who have been tagged as "Older American" by the company without seeking their permission.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Tags = 'Older American' AND T2.`Consumer consent provided?` IN (NULL, 'N/A', '') LIMIT 2 |
|
Solve the following sql problem:
What is the birth date of the youngest client?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT day, month, year FROM client ORDER BY year DESC, month DESC, day DESC LIMIT 1 |
|
Solve the following sql problem:
How many times does the consumer have no dispute over a non-timely response from the company?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(`Timely response?`) FROM events WHERE `Timely response?` = 'No' AND `Consumer disputed?` = 'No' |
|
Solve the following sql problem:
How many of the complaints are longer than 15 minutes?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(ser_time) FROM callcenterlogs WHERE strftime('%M', ser_time) > '15' |
|
Solve the following sql problem:
What is the most common issue for the highest priority complaints?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.Issue FROM events AS T1 INNER JOIN callcenterlogs AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.priority = 2 GROUP BY T1.Issue ORDER BY COUNT(T1.Issue) DESC LIMIT 1 |
|
Solve the following sql problem:
List the full names of all clients who live in the Pacific division.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.first, T2.middle, T2.last FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.division = 'Pacific' |
|
Solve the following sql problem:
What is the social number of the person who made the most complaints?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.social FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID GROUP BY T1.client_id ORDER BY COUNT(T1.client_id) DESC LIMIT 1 |
|
Solve the following sql problem:
Which is the city where most of the 1 star reviews come from?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 1 GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1 |
|
Solve the following sql problem:
What is the address of the client who made a complaint via postal mail on March 14, 2012?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2012-03-14' AND T2.`Submitted via` = 'Postal mail' |
|
Solve the following sql problem:
Among the female clients, how many of them have a complaint with a priority of 1?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.sex = 'Female' AND T2.priority = 1 |
|
Solve the following sql problem:
List all the server of the phone complaints with a late response from the company.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T2.server FROM events AS T1 INNER JOIN callcenterlogs AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.`Submitted via` = 'Phone' AND T1.`Timely response?` = 'No' |
|
Solve the following sql problem:
List all the issues of the complaints made by Kaitlyn Eliza Elliott.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T2.Issue FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kaitlyn' AND T1.middle = 'Eliza' AND T1.last = 'Elliott' |
|
Solve the following sql problem:
What is the name of the state that the client with the email "[email protected]" lives in?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T3.state FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN client AS T3 ON T2.district_id = T3.district_id WHERE T3.email = '[email protected]' |
|
Solve the following sql problem:
Which region has the second most clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id GROUP BY T2.division ORDER BY COUNT(T2.division) DESC LIMIT 1, 1 |
|
Solve the following sql problem:
Who is the owner of the final phone number for the complaints on server "MORIAH" on 9/11/2013?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.server = 'MORIAH' AND T2.`Date received` = '2013-09-11' |
|
Solve the following sql problem:
Compute the average time in minute for each age group
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 1 ELSE 0 END) AS teenagerAverageMins, CAST(SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 1 ELSE 0 END) AS adultAverageMins , CAST(SUM(CASE WHEN T1.age > 65 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS elderAverageMins FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` |
|
Solve the following sql problem:
What percentage of complaints are from the elderly?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.age) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID |
|
Solve the following sql problem:
Calculate the percentage of male clients from Indianapolis City.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN sex = 'Male' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(client_id) FROM client WHERE city = 'Indianapolis' |
|
Solve the following sql problem:
Among the teenager clients who use Google account and Microsoft account, which group of client is more than the other?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CASE WHEN SUM(CASE WHEN email LIKE '%@gmail.com' THEN 1 ELSE 0 END) > SUM(CASE WHEN email LIKE '%@outlook.com' THEN 1 ELSE 0 END) THEN 'Google account' ELSE 'Microsoft account' END FROM client WHERE age BETWEEN 13 AND 19 |
|
Solve the following sql problem:
What is the full name of client whose email address is [email protected]?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT first, middle, last FROM client WHERE email = '[email protected]' |
|
Solve the following sql problem:
What is the first name of clients who have the highest priority?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.priority = ( SELECT MAX(priority) FROM callcenterlogs ) |
|
Solve the following sql problem:
List down the email of client whose complaint is type "PS".
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.email FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'PS' |
|
Solve the following sql problem:
Among the elderlies, state the last name of whose complaint is handled in server YIFAT?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.age > 65 AND T2.server = 'YIFAT' |
|
Solve the following sql problem:
How many clients who live in New York City have the complaint outcome as "AGENT"?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T2.`rand client`) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.city = 'New York City' AND T2.outcome = 'AGENT' |
|
Solve the following sql problem:
List down the full name of clients who have disputed the response from company.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Consumer disputed?` = 'Yes' |
|
Solve the following sql problem:
What are the complaint id of client who were born in 1931?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.`Complaint ID` FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.year = 1931 |
|
Solve the following sql problem:
Calculate the percentage of complaints made by Google account client in server ZOHARI.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.email LIKE '%@gmail.com' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.email) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.server = 'ZOHARI' |
|
Solve the following sql problem:
State the full name of clients with server time of 20 minutes and above.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE strftime('%M', T2.ser_time) > '20' |
|
Solve the following sql problem:
Pick 5 clients with 0 priority and write down their last name.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.priority = 0 LIMIT 5 |
|
Solve the following sql problem:
Write down the call id of clients whose first name start with alphabet "B".
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.call_id FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.first LIKE 'B%' |
|
Solve the following sql problem:
What is the product complained by Alexander Bronx Lewis?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Alexander' AND T1.middle = 'Bronx' AND T1.last = 'Lewis' |
|
Solve the following sql problem:
State the first name of male clients who did not receive timely response from the call center.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'No' AND T1.sex = 'Male' |
|
Solve the following sql problem:
Which product received the most complaints from elder clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.age > 65 ORDER BY T1.client_id DESC LIMIT 1 |
|
Solve the following sql problem:
Complaint about Credit Card mostly came from clients of which age group?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 1 ELSE 0 END), SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 1 ELSE 0 END) AS adult , SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS elder FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card' |
|
Solve the following sql problem:
List down the issues for complaint with server time of below 10 minutes.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Issue FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%M', T1.ser_time) < '10' |
|
Solve the following sql problem:
Write down the date received of complaints sent via Fax.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.`Date received` FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Fax' |
|
Solve the following sql problem:
What is the full name of clients who have issue about balance transfer?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Issue = 'Balance transfer' |
|
Solve the following sql problem:
What is the email address of clients who submitted their complaints via postal mail?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.email FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' |
|
Solve the following sql problem:
Calculate the average age of clients whose response is "Closed with relief".
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT AVG(T1.age) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'Closed with relief' |
|
Solve the following sql problem:
What is the average age of clients whose complaint type is "TT"?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT AVG(T1.age) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'TT' |
|
Solve the following sql problem:
Write the complaint ID, call ID, and final phone number of complaints through AVIDAN server from 1/1/2014 to 12/30/2014.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT `Complaint ID`, call_id, phonefinal FROM callcenterlogs WHERE strftime('%Y', `Date received`) = '2014' AND server = 'AVIDAN' |
|
Solve the following sql problem:
Between 1/1/2017 and 4/1/2017, what is the average server time of calls under the server DARMON?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT AVG(CAST(SUBSTR(ser_time, 4, 2) AS REAL)) FROM callcenterlogs WHERE `Date received` BETWEEN '2017-01-01' AND '2017-04-01' |
|
Solve the following sql problem:
How many times per year does a credit card customer complain about overlimit fees?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT strftime('%Y', `Date received`), COUNT(`Date received`) FROM events WHERE product = 'Credit card' AND issue = 'Overlimit fee' GROUP BY strftime('%Y', `Date received`) HAVING COUNT(`Date received`) |
|
Solve the following sql problem:
Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Middle Atlantic' AND T1.sex = 'Female' AND T1.age < 18 |
|
Solve the following sql problem:
Give me the full birthdate, email and phone number of the youngest client in Indianapolis .
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.year, T1.month, T1.day, T1.email, T1.phone FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Indianapolis' ORDER BY T1.year DESC, T1.month DESC, T1.day DESC LIMIT 1 |
|
Solve the following sql problem:
List the top five cities in terms of the number of 5-star ratings in 2016 reviews, in descending order.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 5 AND T1.Date LIKE '2016%' ORDER BY T1.Date DESC LIMIT 5 |
|
Solve the following sql problem:
What is the longest server time when the call is about the issue of arbitration?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT MAX(T1.ser_time) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.issue = 'Arbitration' |
|
Solve the following sql problem:
Give me the social number and state of the client whose phone number is 100-121-8371.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.social, T1.state FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T1.phone = '100-121-8371' |
|
Solve the following sql problem:
List the full names and phone numbers of clients that were from the Pacific.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.middle, T1.last, T1.phone FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Pacific' |
|
Solve the following sql problem:
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.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.social , 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)), T2.`Company response to consumer` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID ORDER BY 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)) DESC LIMIT 1 |
|
Solve the following sql problem:
How many female clients are there older than 30?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(sex) FROM client WHERE sex = 'Female' AND age > 30 |
|
Solve the following sql problem:
Please list all first and last names of clients who live in New York city.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT first, last FROM client WHERE city = 'New York City' |
|
Solve the following sql problem:
What is the oldest age of male clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT MAX(age) FROM client WHERE sex = 'Male' |
|
Solve the following sql problem:
Please calculate the number of clients by each division.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.division, COUNT(T2.division) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id GROUP BY T2.division |
|
Solve the following sql problem:
What is the percentage of female clients in the Middle Atlantic?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.sex = 'Female' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'South Atlantic' |
|
Solve the following sql problem:
What is the average age of clients in South Atlantic?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT AVG(T1.age) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'South Atlantic' |
|
Solve the following sql problem:
Which city in the Midwest region has the least number of clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.city FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Midwest' GROUP BY T2.city ORDER BY COUNT(T2.city) LIMIT 1 |
|
Solve the following sql problem:
How many customers in the Northeast use Microsoft email?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.email) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Northeast' AND T1.email LIKE '%@outlook.com' |
|
Solve the following sql problem:
Which city in West North Central has the highest number of customers over the age of 60?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.city FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'West North Central' AND T1.age > 60 GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1 |
|
Solve the following sql problem:
What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST(SUM(CASE WHEN T1.priority = 2 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%Y', T1.`Date received`) = '2017' |
|
Solve the following sql problem:
Which state has the most cities?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT state_abbrev FROM district GROUP BY state_abbrev ORDER BY COUNT(city) DESC LIMIT 1 |
|
Solve the following sql problem:
Please give the first name and phone number of the client whose complaint id is CR0922485.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.first, T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Complaint ID` = 'CR0922485' |
|
Solve the following sql problem:
Please list the emails of the clients whose complaint date received is 7/3/2014.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.email FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2014-07-03' |
|
Solve the following sql problem:
In 2012, how many complaints about Credit card product came from clients in Omaha?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Omaha' AND strftime('%Y', T2.`Date received`) = '2012' AND T2.Product = 'Credit card' |
|
Solve the following sql problem:
From 2012 to 2015, how many complaints were submitted via email from female clients?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE strftime('%Y', T2.`Date received`) BETWEEN '2012' AND '2015' AND T2.`Submitted via` = 'Email' AND T1.sex = 'Male' |
|
Solve the following sql problem:
Please list all clients' phone numbers and complaint IDs which are still in progress.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T1.phone, T2.`Complaint ID` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress' |
|
Solve the following sql problem:
In 2015, how many complaints about Billing disputes were sent by clients in Portland?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Portland' AND T2.`Date received` LIKE '2015%' AND T2.Issue = 'Billing disputes' |
|
Solve the following sql problem:
In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT CAST((SUM(CASE WHEN strftime('%J', T2.`Date sent to company`) - strftime('%J', T2.`Date received`) > 5 THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Houston' AND strftime('%Y', T2.`Date received`) = '2014' |
|
Solve the following sql problem:
In the complains received in 2012, how many of them are submitted through email?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(`Submitted via`) FROM events WHERE strftime('%Y', `Date received`) = '2012' AND `Submitted via` = 'Email' |
|
Solve the following sql problem:
Give the client ID of the complaint received on April 16, 2014 and submitted through fax.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Client_ID FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Fax' AND T1.`Date received` = '2014-04-16' |
|
Solve the following sql problem:
List date of the review of the Eagle Capital from Indianapolis, Indiana.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Date FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Product = 'Eagle Capital' AND T1.city = 'Indianapolis' AND T1.state_abbrev = 'IN' |
|
Solve the following sql problem:
Among the complaints received in year 2015, what is total number of complaints timely response and closed with an explanation?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%Y', T1.`Date received`) = '2015' AND T2.`Timely response?` = 'Yes' AND T2.`Company response to consumer` = 'Closed with explanation' |
|
Solve the following sql problem:
Among the female clients that age between 20 to 40, list the date when their complaints were received.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT DISTINCT T3.`Date received` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID INNER JOIN callcenterlogs AS T3 ON T2.`Complaint ID` = T3.`Complaint ID` WHERE T1.age BETWEEN 20 AND 40 AND T1.sex = 'Female' |
|
Solve the following sql problem:
List the product reviewed with 1 star on March 14, 2016 from Newton, Massachusetts.
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT T2.Product FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T1.city = 'Newton' AND T1.state_abbrev = 'MA' AND T2.Date = '2016-03-14' AND T2.Stars = 1 |
|
Solve the following sql problem:
In reviews for the Eagle National Bank product, how many of the 5 star reviews where from Nashville, Tennessee?
Schema:
SCHEMA:
- Table: state
- Column: StateCode
- Samples: [AL, AR, AZ, CA, CO]
- Column: State
- Samples: [Alabama, Arkansas, Arizona, California, Colorado]
- Column: Region
- Samples: [South, South, West, West, West]
- Table: callcenterlogs
- Column: Date received
- Samples: [2017-03-27, 2017-03-27, 2017-03-27, 2017-03-23, 2017-03-22]
- Column: Complaint ID
- Samples: [CR2406263, CR2405641, CR2405629, CR2400594, CR2399607]
- Column: rand client
- Samples: [C00004587, C00003328, C00001685, C00001945, C00004303]
- Column: phonefinal
- Samples: [977-806-9726, 322-598-7152, 508-311-5237, 265-394-2727, 206-008-0460]
- Column: vru+line
- Samples: [AA0103, AA0205, AA0110, AA0113, AA0102]
- Column: call_id
- Samples: [34536, 34537, 34538, 34540, 34541]
- Column: priority
- Samples: [0, 0, 2, 2, 1]
- Column: type
- Samples: [NW, PS, PS, PS, PS]
- Column: outcome
- Samples: [AGENT, AGENT, AGENT, AGENT, AGENT]
- Column: server
- Samples: [MICHAL, TOVA, YIFAT, AVNI, STEREN]
- Column: ser_start
- Samples: [13:34:11, 10:58:22, 13:00:54, 16:18:21, 14:48:22]
- Column: ser_exit
- Samples: [13:40:23, 11:16:10, 13:13:31, 16:19:40, 14:55:19]
- Column: ser_time
- Samples: [00:06:12, 00:17:48, 00:12:37, 00:01:19, 00:06:57]
- Table: client
- Column: client_id
- Samples: [C00000001, C00000002, C00000003, C00000004, C00000005]
- Column: sex
- Samples: [Female, Male, Female, Male, Female]
- Column: day
- Samples: [13, 4, 9, 1, 3]
- Column: month
- Samples: [12, 2, 10, 12, 7]
- Column: year
- Samples: [1990, 1965, 1960, 1976, 1980]
- Column: age
- Samples: [29, 54, 59, 43, 39]
- Column: social
- Samples: [926-93-2157, 806-94-5725, 614-70-9100, 580-20-3414, 536-14-5809]
- Column: first
- Samples: [Emma, Noah, Olivia, Liam, Sophia]
- Column: middle
- Samples: [Avaya, Everest, Brooklynne, Irvin, Danae]
- Column: last
- Samples: [Smith, Thompson, Johnson, White, Williams]
- Column: phone
- Samples: [367-171-6840, 212-423-7734, 212-425-6932, 951-567-8925, 428-265-1568]
- Column: email
- Samples: [[email protected], [email protected], [email protected], [email protected], [email protected]]
- Column: address_1
- Samples: [387 Wellington Ave., 75 W. Berkshire St., 36 Second St., 7607 Sunnyslope Street, 755 Galvin Street]
- Column: address_2
- Samples: [Unit 1, None, None, None, None]
- Column: city
- Samples: [Albuquerque, New York City, New York City, Indianapolis, Indianapolis]
- Column: state
- Samples: [NM, NY, NY, IN, IN]
- Column: zipcode
- Samples: [47246, 10040, 10162, 49047, 40852]
- Column: district_id
- Samples: [18, 1, 1, 5, 5]
- Table: district
- Column: district_id
- Samples: [1, 2, 3, 4, 5]
- Column: city
- Samples: [New York City, Jacksonville, Columbus, Charlotte, Indianapolis]
- Column: state_abbrev
- Samples: [NY, FL, OH, NC, IN]
- Column: division
- Samples: [Middle Atlantic, South Atlantic, East North Central, South Atlantic, East North Central]
- Table: events
- Column: Date received
- Samples: [2014-07-03, 2012-04-12, 2012-04-03, 2012-03-14, 2012-03-05]
- Column: Product
- Samples: [Bank account or service, Bank account or service, Bank account or service, Credit card, Bank account or service]
- Column: Sub-product
- Samples: [Checking account, Savings account, Checking account, None, Checking account]
- Column: Issue
- Samples: [Deposits and withdrawals, Account opening, closing, or management, Account opening, closing, or management, Billing disputes, Account opening, closing, or management]
- Column: Sub-issue
- Samples: [None, None, None, None, None]
- Column: Consumer complaint narrative
- Samples: [None, None, None, None, None]
- Column: Tags
- Samples: [None, None, None, None, None]
- Column: Consumer consent provided?
- Samples: [N/A, N/A, N/A, N/A, N/A]
- Column: Submitted via
- Samples: [Email, Email, Email, Email, Email]
- Column: Date sent to company
- Samples: [2014-07-09, 2012-04-13, 2012-04-03, 2012-03-14, 2012-03-06]
- Column: Company response to consumer
- Samples: [Closed with explanation, Closed with relief, Closed without relief, Closed with relief, Closed with relief]
- Column: Timely response?
- Samples: [Yes, Yes, Yes, Yes, Yes]
- Column: Consumer disputed?
- Samples: [No, No, No, No, No]
- Column: Complaint ID
- Samples: [CR0922485, CR0057298, CR0043811, CR0035411, CR0030939]
- Column: Client_ID
- Samples: [C00001925, C00003141, C00000297, C00004275, C00000900]
- Table: reviews
- Column: Date
- Samples: [2017-10-04, 2017-10-02, 2017-08-21, 2017-12-17, 2016-05-27]
- Column: Stars
- Samples: [5, 5, 5, 5, 5]
- Column: Reviews
- Samples: [Great job, Eagle National! Each person was professional and helped us ..., Matthew Richardson is professional and helpful. He helped us find the ..., We had a past experience with Eagle National Mortgage and would withou..., We have been dealing with Brad Thomka from the beginning of what start..., I can't express how grateful I am for the support that Zach provided t... (truncated)]
- Column: Product
- Samples: [Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage, Eagle National Mortgage]
- Column: district_id
- Samples: [65, 66, 23, 55, 24]
| SELECT COUNT(T2.Stars) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T1.city = 'Nashville' AND T1.state_abbrev = 'TN' AND T2.Product = 'Eagle National Mortgage' AND T2.Stars = 5 |