chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:35:10 +08:00
commit e4f55014ae
695 changed files with 121471 additions and 0 deletions
@@ -0,0 +1,100 @@
Query,SQL,Levels,split
What is the balance due from Richard Aguirre?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Richard Aguirre"" ) ",medium,train
What is the balance due from Sarah Oconnor?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Sarah Oconnor"" ) ",medium,train
What is my average invoice from Jeffrey Moore?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Jeffrey Moore"" and transaction_type = 'invoice')",hard,train
How much open credit does customer Andrew Bennett?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Andrew Bennett"" ) ",easy,train
What is my average invoice from Jeremy Strong?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Jeremy Strong"" and transaction_type = 'invoice')",hard,train
What is my average invoice from Lisa Mitchell?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Lisa Mitchell"" and transaction_type = 'invoice')",hard,train
Justin Estes has received how many invoices?,"select count(distinct transaction_id) from master_txn_table where customers = ""Justin Estes"" and transaction_type = 'invoice'",medium,train
Display the total number of transactions with Jonathan Barton,"select count(distinct transaction_id) from master_txn_table where customers = ""Jonathan Barton""",medium,train
How much open credit does customer Tracy Bean?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Tracy Bean"" ) ",easy,train
How much open credit does customer Wanda Welch?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Wanda Welch"" ) ",easy,train
How much open credit does customer Kathleen George?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Kathleen George"" ) ",easy,train
How much we received from Providing independent operation of railroad terminals?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Providing independent operation of railroad terminals"")",hard,train
What was the most recent invoice for Leslie Beck?,"select transaction_id from master_txn_table where transaction_type = 'invoice' and customers = ""Leslie Beck"" order by transaction_date desc limit 1",medium,train
How much open credit does customer Sylvia Williams?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Sylvia Williams"" ) ",easy,train
Display all transactions involving Crystal Todd,"select distinct transaction_id from master_txn_table where customers = ""Crystal Todd""",medium,train
How much open credit does customer Robert Bowers?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Robert Bowers"" ) ",easy,train
How much open credit does customer Andrew Vaughan?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Andrew Vaughan"" ) ",easy,train
How much open credit does customer Karen Bonilla?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Karen Bonilla"" ) ",easy,train
How much has Colleen Ward been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Colleen Ward"" group by date(transaction_date, 'start of month')",hard,train
What are my total sales by Duplexes?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = ""Duplexes""",hard,train
What was the total amount earned in Intravenous Therapy This fiscal year to date?,"select sum(credit) from master_txn_table where transaction_date BETWEEN date(current_date, '-3 months', 'start of year', '+3 months') AND date(current_date, '-3 months', 'start of year','+1 year', '+3 months', '-1 day') and product_service = 'Intravenous Therapy' and transaction_type in ('invoice', 'sales recept')",medium,train
What is my average invoice from Nicholas Kim?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Nicholas Kim"" and transaction_type = 'invoice')",hard,train
How much has Tracy Rojas been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Tracy Rojas"" group by date(transaction_date, 'start of month')",hard,train
How much open credit does customer Suzanne Hayes?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Suzanne Hayes"" ) ",easy,train
What are the invoice dates for customers with the customer name Natasha Lin?,"SELECT transaction_date from (select distinct transaction_id, transaction_date from master_txn_table where customers=""Natasha Lin"" and transaction_type = 'invoice') ",medium,train
When was the last time we billed for Loading and unloading,"select transaction_date from master_txn_table where product_service = ""Loading and unloading"" order by transaction_date desc limit 1; ",medium,train
How much open credit does customer Robert Roberts?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Robert Roberts"" ) ",easy,train
"In the This fiscal year, what has been my total revenue from Catherine Lindsey?","select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and customers = ""Catherine Lindsey"" and transaction_date BETWEEN date(current_date, '-3 months', 'start of year', '+3 months') AND date(current_date) ",hard,train
How much open credit does customer Jacob Melendez?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Jacob Melendez"" ) ",easy,train
Display all transactions involving Julie Randall,"select distinct transaction_id from master_txn_table where customers = ""Julie Randall""",medium,train
How much has Shannon Hernandez been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Shannon Hernandez"" group by date(transaction_date, 'start of month')",hard,train
How much open credit does customer Miguel Villarreal?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Miguel Villarreal"" ) ",easy,train
How much open credit does customer Brian Wheeler?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Brian Wheeler"" ) ",easy,train
How many credit card transactions occurred This year?,"select count(distinct transaction_id) from master_txn_table as T1 join payment_method as T2 on T1.payment_method = T2.payment_method where T2.credit_card = ""yes"" and T1.transaction_date BETWEEN date(current_date, 'start of year') AND date(current_date) ",hard,train
How much open credit does customer Tonya Lee?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Tonya Lee"" ) ",easy,train
Show all transactions with Mr Andrea Smith,select distinct transaction_id from master_txn_table where customers = 'Andrea Smith' or vendor = 'Andrea Smith',medium,train
How much has Samantha Aguilar been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Samantha Aguilar"" group by date(transaction_date, 'start of month')",hard,train
Show number of transactions with Carol Smith,select count(distinct transaction_id) from master_txn_table where customers = 'Carol Smith' or vendor = 'Carol Smith',medium,train
How much open credit does customer Natalie Myers?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Natalie Myers"" ) ",easy,train
How much we received from Fuel?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Fuel"")",hard,train
"As of This month to date, how many invoices for Brent Rodriguez were still outstanding?","select count(distinct transaction_id) from master_txn_table where customers = ""Brent Rodriguez"" and transaction_type = 'invoice' and open_balance >0 and transaction_date BETWEEN date( current_date, ""start of month"") AND date( current_date) ",medium,train
How much open credit does customer Melissa Weaver?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Melissa Weaver"" ) ",easy,train
Show all transactions with Mr Corey Durham,select distinct transaction_id from master_txn_table where customers = 'Corey Durham' or vendor = 'Corey Durham',medium,train
How much open credit does customer Karen Brown?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Karen Brown"" ) ",easy,train
How much open credit does customer Julie Flynn MD?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Julie Flynn MD"" ) ",easy,train
What are my total sales by Oil and gas wells?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = ""Oil and gas wells""",hard,train
How much open credit does customer Robert Hammond?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Robert Hammond"" ) ",easy,train
What is my last invoice from Vicki Page?,"select distinct transaction_id, amount, transaction_date from master_txn_table where customers = ""Vicki Page"" and transaction_type = 'invoice' order by transaction_date desc limit 1 ",medium,train
How much open credit does customer Casey King?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Casey King"" ) ",easy,train
How much open credit does customer Gail Hoover?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Gail Hoover"" ) ",easy,train
How much open credit does customer Jeremy Benson?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Jeremy Benson"" ) ",easy,train
How much open credit does customer Susan Williamson?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Susan Williamson"" ) ",easy,train
What was the mean invoice amount for Barbara Scott?,"select avg(credit) from master_txn_table where transaction_type = 'invoice' and customers = ""Barbara Scott"" ",medium,train
How much open credit does customer Jerry Nunez?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Jerry Nunez"" ) ",easy,train
What is my average invoice from Robert Edwards?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Robert Edwards"" and transaction_type = 'invoice')",hard,train
How much open credit does customer Sabrina Newton?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Sabrina Newton"" ) ",easy,train
What is my average invoice from Anna Martin?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Anna Martin"" and transaction_type = 'invoice')",hard,train
How many invoices have we sent to Nathaniel Montgomery?,"select count(distinct transaction_id) from master_txn_table where customers = ""Nathaniel Montgomery"" and transaction_type = 'invoice'",medium,train
What's the profit Last 12 months?,"select sum(credit - debit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income','Expense','Other Expense') and transaction_date BETWEEN date( current_date, ""-12 months"", ""start of month"") AND date( current_date, 'start of month', '-1 day') ",hard,train
Show all of Andrea Martinez's transactions,"select distinct transaction_id from master_txn_table where customers = ""Andrea Martinez""",medium,train
How much has Monica Valentine been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Monica Valentine"" group by date(transaction_date, 'start of month')",hard,train
What is my total bill for Tammy Johnson?,"select sum(credit) from master_txn_table where transaction_type = 'bill' and vendor = ""Tammy Johnson""",medium,train
How many invoices have we sent to Nathan Pineda?,"select count(distinct transaction_id) from master_txn_table where customers = ""Nathan Pineda"" and transaction_type = 'invoice'",medium,train
Show all transactions with Mr John Copeland,select distinct transaction_id from master_txn_table where customers = 'John Copeland' or vendor = 'John Copeland',medium,train
How much we received from Manufacturing other Natural oils?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Manufacturing other Natural oils"")",hard,train
Display the total number of transactions with Raymond Brown,"select count(distinct transaction_id) from master_txn_table where customers = ""Raymond Brown""",medium,train
How much we received from Other Services?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Other Services"")",hard,train
What is my total bill for Sydney Gonzalez?,"select sum(credit) from master_txn_table where transaction_type = 'bill' and vendor = ""Sydney Gonzalez""",medium,train
What is my average invoice from Jordan Schmidt?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Jordan Schmidt"" and transaction_type = 'invoice')",hard,train
How much we received from Acidizing and chemically treating wells?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Acidizing and chemically treating wells"")",hard,train
"As of in q3 last year, how many invoices for Crystal Anthony were still outstanding?","select count(distinct transaction_id) from master_txn_table where customers = ""Crystal Anthony"" and transaction_type = 'invoice' and open_balance >0 and transaction_date BETWEEN date(current_date, '-1 year', 'start of year', '+6 month') AND date(current_date, '-1 year', 'start of year', '+9 month', '-1 day') ",medium,train
What is my last invoice from Jody Sanchez?,"select distinct transaction_id, amount, transaction_date from master_txn_table where customers = ""Jody Sanchez"" and transaction_type = 'invoice' order by transaction_date desc limit 1 ",medium,train
Number of invoices created for Loan Payable?,"select count(distinct transaction_id) from master_txn_table where transaction_type = 'invoice' and instr(account,""Loan Payable"")",medium,train
What is my average invoice from Ashley Thompson?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Ashley Thompson"" and transaction_type = 'invoice')",hard,train
Show number of transactions with Terri Bowman,select count(distinct transaction_id) from master_txn_table where customers = 'Terri Bowman' or vendor = 'Terri Bowman',medium,train
How much we received from Wholesaling aircraft?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Wholesaling aircraft"")",hard,train
How much open credit does customer Kiara Pearson?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Kiara Pearson"" ) ",easy,train
What is my average invoice from Heather Haas?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Heather Haas"" and transaction_type = 'invoice')",hard,train
What was the most recent invoice for Roberta Shaw?,"select transaction_id from master_txn_table where transaction_type = 'invoice' and customers = ""Roberta Shaw"" order by transaction_date desc limit 1",medium,train
What are the invoice dates for customers with the customer name Bryan Garcia?,"SELECT transaction_date from (select distinct transaction_id, transaction_date from master_txn_table where customers=""Bryan Garcia"" and transaction_type = 'invoice') ",medium,train
How much has Dawn Roman been paying us every month,"select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = ""Dawn Roman"" group by date(transaction_date, 'start of month')",hard,train
Number of invoices created for Installation?,"select count(distinct transaction_id) from master_txn_table where transaction_type = 'invoice' and instr(account,""Installation"")",medium,train
How much open credit does customer Eric Smith II?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Eric Smith II"" ) ",easy,train
How much open credit does customer Andre Stevens?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Andre Stevens"" ) ",easy,train
What was the min invoice value for Photocopying services?,"select min(credit) from master_txn_table where transaction_type = 'invoice' and instr(account,""Photocopying services"")",medium,train
How much open credit does customer Helen Patrick?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Helen Patrick"" ) ",easy,train
How much open credit does customer Jonathan Bradley?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Jonathan Bradley"" ) ",easy,train
How much open credit does customer Anthony Olson?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Anthony Olson"" ) ",easy,train
What is my average invoice from Kathleen Brown?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Kathleen Brown"" and transaction_type = 'invoice')",hard,train
What is my average invoice from Erik Mckenzie?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Erik Mckenzie"" and transaction_type = 'invoice')",hard,train
How much we received from Data entry services?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,""Data entry services"")",hard,train
What is my average invoice from William Hendricks?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""William Hendricks"" and transaction_type = 'invoice')",hard,train
What is my average invoice from Anthony Armstrong?,"select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = ""Anthony Armstrong"" and transaction_type = 'invoice')",hard,train
How much open credit does customer Harold Neal?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Harold Neal"" ) ",easy,train
Display the total number of transactions with Margaret Alvarez,"select count(distinct transaction_id) from master_txn_table where customers = ""Margaret Alvarez""",medium,train
What are my total sales by Ships?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = ""Ships""",hard,train
How much open credit does customer Samuel Turner?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Samuel Turner"" ) ",easy,train
What are my total sales by Miscellaneous?,"select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = ""Miscellaneous""",hard,train
How much money does Joshua Hensley still owe?,"select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = ""Joshua Hensley"")",medium,train
1 Query SQL Levels split
2 What is the balance due from Richard Aguirre? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Richard Aguirre" ) medium train
3 What is the balance due from Sarah Oconnor? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Sarah Oconnor" ) medium train
4 What is my average invoice from Jeffrey Moore? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Jeffrey Moore" and transaction_type = 'invoice') hard train
5 How much open credit does customer Andrew Bennett? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Andrew Bennett" ) easy train
6 What is my average invoice from Jeremy Strong? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Jeremy Strong" and transaction_type = 'invoice') hard train
7 What is my average invoice from Lisa Mitchell? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Lisa Mitchell" and transaction_type = 'invoice') hard train
8 Justin Estes has received how many invoices? select count(distinct transaction_id) from master_txn_table where customers = "Justin Estes" and transaction_type = 'invoice' medium train
9 Display the total number of transactions with Jonathan Barton select count(distinct transaction_id) from master_txn_table where customers = "Jonathan Barton" medium train
10 How much open credit does customer Tracy Bean? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Tracy Bean" ) easy train
11 How much open credit does customer Wanda Welch? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Wanda Welch" ) easy train
12 How much open credit does customer Kathleen George? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Kathleen George" ) easy train
13 How much we received from Providing independent operation of railroad terminals? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Providing independent operation of railroad terminals") hard train
14 What was the most recent invoice for Leslie Beck? select transaction_id from master_txn_table where transaction_type = 'invoice' and customers = "Leslie Beck" order by transaction_date desc limit 1 medium train
15 How much open credit does customer Sylvia Williams? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Sylvia Williams" ) easy train
16 Display all transactions involving Crystal Todd select distinct transaction_id from master_txn_table where customers = "Crystal Todd" medium train
17 How much open credit does customer Robert Bowers? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Robert Bowers" ) easy train
18 How much open credit does customer Andrew Vaughan? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Andrew Vaughan" ) easy train
19 How much open credit does customer Karen Bonilla? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Karen Bonilla" ) easy train
20 How much has Colleen Ward been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Colleen Ward" group by date(transaction_date, 'start of month') hard train
21 What are my total sales by Duplexes? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = "Duplexes" hard train
22 What was the total amount earned in Intravenous Therapy This fiscal year to date? select sum(credit) from master_txn_table where transaction_date BETWEEN date(current_date, '-3 months', 'start of year', '+3 months') AND date(current_date, '-3 months', 'start of year','+1 year', '+3 months', '-1 day') and product_service = 'Intravenous Therapy' and transaction_type in ('invoice', 'sales recept') medium train
23 What is my average invoice from Nicholas Kim? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Nicholas Kim" and transaction_type = 'invoice') hard train
24 How much has Tracy Rojas been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Tracy Rojas" group by date(transaction_date, 'start of month') hard train
25 How much open credit does customer Suzanne Hayes? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Suzanne Hayes" ) easy train
26 What are the invoice dates for customers with the customer name Natasha Lin? SELECT transaction_date from (select distinct transaction_id, transaction_date from master_txn_table where customers="Natasha Lin" and transaction_type = 'invoice') medium train
27 When was the last time we billed for Loading and unloading select transaction_date from master_txn_table where product_service = "Loading and unloading" order by transaction_date desc limit 1; medium train
28 How much open credit does customer Robert Roberts? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Robert Roberts" ) easy train
29 In the This fiscal year, what has been my total revenue from Catherine Lindsey? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and customers = "Catherine Lindsey" and transaction_date BETWEEN date(current_date, '-3 months', 'start of year', '+3 months') AND date(current_date) hard train
30 How much open credit does customer Jacob Melendez? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Jacob Melendez" ) easy train
31 Display all transactions involving Julie Randall select distinct transaction_id from master_txn_table where customers = "Julie Randall" medium train
32 How much has Shannon Hernandez been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Shannon Hernandez" group by date(transaction_date, 'start of month') hard train
33 How much open credit does customer Miguel Villarreal? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Miguel Villarreal" ) easy train
34 How much open credit does customer Brian Wheeler? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Brian Wheeler" ) easy train
35 How many credit card transactions occurred This year? select count(distinct transaction_id) from master_txn_table as T1 join payment_method as T2 on T1.payment_method = T2.payment_method where T2.credit_card = "yes" and T1.transaction_date BETWEEN date(current_date, 'start of year') AND date(current_date) hard train
36 How much open credit does customer Tonya Lee? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Tonya Lee" ) easy train
37 Show all transactions with Mr Andrea Smith select distinct transaction_id from master_txn_table where customers = 'Andrea Smith' or vendor = 'Andrea Smith' medium train
38 How much has Samantha Aguilar been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Samantha Aguilar" group by date(transaction_date, 'start of month') hard train
39 Show number of transactions with Carol Smith select count(distinct transaction_id) from master_txn_table where customers = 'Carol Smith' or vendor = 'Carol Smith' medium train
40 How much open credit does customer Natalie Myers? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Natalie Myers" ) easy train
41 How much we received from Fuel? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Fuel") hard train
42 As of This month to date, how many invoices for Brent Rodriguez were still outstanding? select count(distinct transaction_id) from master_txn_table where customers = "Brent Rodriguez" and transaction_type = 'invoice' and open_balance >0 and transaction_date BETWEEN date( current_date, "start of month") AND date( current_date) medium train
43 How much open credit does customer Melissa Weaver? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Melissa Weaver" ) easy train
44 Show all transactions with Mr Corey Durham select distinct transaction_id from master_txn_table where customers = 'Corey Durham' or vendor = 'Corey Durham' medium train
45 How much open credit does customer Karen Brown? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Karen Brown" ) easy train
46 How much open credit does customer Julie Flynn MD? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Julie Flynn MD" ) easy train
47 What are my total sales by Oil and gas wells? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = "Oil and gas wells" hard train
48 How much open credit does customer Robert Hammond? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Robert Hammond" ) easy train
49 What is my last invoice from Vicki Page? select distinct transaction_id, amount, transaction_date from master_txn_table where customers = "Vicki Page" and transaction_type = 'invoice' order by transaction_date desc limit 1 medium train
50 How much open credit does customer Casey King? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Casey King" ) easy train
51 How much open credit does customer Gail Hoover? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Gail Hoover" ) easy train
52 How much open credit does customer Jeremy Benson? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Jeremy Benson" ) easy train
53 How much open credit does customer Susan Williamson? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Susan Williamson" ) easy train
54 What was the mean invoice amount for Barbara Scott? select avg(credit) from master_txn_table where transaction_type = 'invoice' and customers = "Barbara Scott" medium train
55 How much open credit does customer Jerry Nunez? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Jerry Nunez" ) easy train
56 What is my average invoice from Robert Edwards? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Robert Edwards" and transaction_type = 'invoice') hard train
57 How much open credit does customer Sabrina Newton? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Sabrina Newton" ) easy train
58 What is my average invoice from Anna Martin? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Anna Martin" and transaction_type = 'invoice') hard train
59 How many invoices have we sent to Nathaniel Montgomery? select count(distinct transaction_id) from master_txn_table where customers = "Nathaniel Montgomery" and transaction_type = 'invoice' medium train
60 What's the profit Last 12 months? select sum(credit - debit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income','Expense','Other Expense') and transaction_date BETWEEN date( current_date, "-12 months", "start of month") AND date( current_date, 'start of month', '-1 day') hard train
61 Show all of Andrea Martinez's transactions select distinct transaction_id from master_txn_table where customers = "Andrea Martinez" medium train
62 How much has Monica Valentine been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Monica Valentine" group by date(transaction_date, 'start of month') hard train
63 What is my total bill for Tammy Johnson? select sum(credit) from master_txn_table where transaction_type = 'bill' and vendor = "Tammy Johnson" medium train
64 How many invoices have we sent to Nathan Pineda? select count(distinct transaction_id) from master_txn_table where customers = "Nathan Pineda" and transaction_type = 'invoice' medium train
65 Show all transactions with Mr John Copeland select distinct transaction_id from master_txn_table where customers = 'John Copeland' or vendor = 'John Copeland' medium train
66 How much we received from Manufacturing other Natural oils? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Manufacturing other Natural oils") hard train
67 Display the total number of transactions with Raymond Brown select count(distinct transaction_id) from master_txn_table where customers = "Raymond Brown" medium train
68 How much we received from Other Services? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Other Services") hard train
69 What is my total bill for Sydney Gonzalez? select sum(credit) from master_txn_table where transaction_type = 'bill' and vendor = "Sydney Gonzalez" medium train
70 What is my average invoice from Jordan Schmidt? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Jordan Schmidt" and transaction_type = 'invoice') hard train
71 How much we received from Acidizing and chemically treating wells? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Acidizing and chemically treating wells") hard train
72 As of in q3 last year, how many invoices for Crystal Anthony were still outstanding? select count(distinct transaction_id) from master_txn_table where customers = "Crystal Anthony" and transaction_type = 'invoice' and open_balance >0 and transaction_date BETWEEN date(current_date, '-1 year', 'start of year', '+6 month') AND date(current_date, '-1 year', 'start of year', '+9 month', '-1 day') medium train
73 What is my last invoice from Jody Sanchez? select distinct transaction_id, amount, transaction_date from master_txn_table where customers = "Jody Sanchez" and transaction_type = 'invoice' order by transaction_date desc limit 1 medium train
74 Number of invoices created for Loan Payable? select count(distinct transaction_id) from master_txn_table where transaction_type = 'invoice' and instr(account,"Loan Payable") medium train
75 What is my average invoice from Ashley Thompson? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Ashley Thompson" and transaction_type = 'invoice') hard train
76 Show number of transactions with Terri Bowman select count(distinct transaction_id) from master_txn_table where customers = 'Terri Bowman' or vendor = 'Terri Bowman' medium train
77 How much we received from Wholesaling aircraft? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Wholesaling aircraft") hard train
78 How much open credit does customer Kiara Pearson? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Kiara Pearson" ) easy train
79 What is my average invoice from Heather Haas? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Heather Haas" and transaction_type = 'invoice') hard train
80 What was the most recent invoice for Roberta Shaw? select transaction_id from master_txn_table where transaction_type = 'invoice' and customers = "Roberta Shaw" order by transaction_date desc limit 1 medium train
81 What are the invoice dates for customers with the customer name Bryan Garcia? SELECT transaction_date from (select distinct transaction_id, transaction_date from master_txn_table where customers="Bryan Garcia" and transaction_type = 'invoice') medium train
82 How much has Dawn Roman been paying us every month select date(transaction_date, 'start of month'), sum(credit) from master_txn_table where customers = "Dawn Roman" group by date(transaction_date, 'start of month') hard train
83 Number of invoices created for Installation? select count(distinct transaction_id) from master_txn_table where transaction_type = 'invoice' and instr(account,"Installation") medium train
84 How much open credit does customer Eric Smith II? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Eric Smith II" ) easy train
85 How much open credit does customer Andre Stevens? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Andre Stevens" ) easy train
86 What was the min invoice value for Photocopying services? select min(credit) from master_txn_table where transaction_type = 'invoice' and instr(account,"Photocopying services") medium train
87 How much open credit does customer Helen Patrick? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Helen Patrick" ) easy train
88 How much open credit does customer Jonathan Bradley? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Jonathan Bradley" ) easy train
89 How much open credit does customer Anthony Olson? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Anthony Olson" ) easy train
90 What is my average invoice from Kathleen Brown? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Kathleen Brown" and transaction_type = 'invoice') hard train
91 What is my average invoice from Erik Mckenzie? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Erik Mckenzie" and transaction_type = 'invoice') hard train
92 How much we received from Data entry services? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income', 'Other Income') and instr(account,"Data entry services") hard train
93 What is my average invoice from William Hendricks? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "William Hendricks" and transaction_type = 'invoice') hard train
94 What is my average invoice from Anthony Armstrong? select avg(amount) from (select distinct transaction_id, amount from master_txn_table where customers = "Anthony Armstrong" and transaction_type = 'invoice') hard train
95 How much open credit does customer Harold Neal? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Harold Neal" ) easy train
96 Display the total number of transactions with Margaret Alvarez select count(distinct transaction_id) from master_txn_table where customers = "Margaret Alvarez" medium train
97 What are my total sales by Ships? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = "Ships" hard train
98 How much open credit does customer Samuel Turner? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Samuel Turner" ) easy train
99 What are my total sales by Miscellaneous? select sum(credit) from master_txn_table as T1 join chart_of_accounts as T2 on T1.account = T2.account_name where account_type in ('Income','Other Income') and product_service = "Miscellaneous" hard train
100 How much money does Joshua Hensley still owe? select sum(open_balance) from ( select distinct transaction_id, open_balance from master_txn_table where customers = "Joshua Hensley") medium train