question;query;db_id What is the interest to finance the loan on a loan id higher than 56900 and with a budget bigger than 449250?;SELECT interest FROM Loans WHERE loan_id <> 56900 AND budget >= 449250;loan_db What is the counterparty bank branch_id of the bank in (6430, 39803) with the counterparty bank branch_id?;SELECT counterparty_bank_branch_id FROM Source WHERE counterparty_bank_branch_id IN (6430, 39803);transactions_db What is the unique of the loan with a client_id different than 1372?;SELECT DISTINCT * FROM Loans WHERE client_id <> 1372;loan_db What is the greatest amount of money for loans with less than 21 interest or a client_id in (97981, 66194)?;SELECT MAX(budget) FROM Loans WHERE interest < 21 OR client_id IN (97981, 66194);loan_db What is the week number of the time on a timestamp with 35878, 86604 or an hour number different than 4?;SELECT week_number FROM Time WHERE timestamp_id IN (35878, 86604) OR hour_number <> 4;transactions_db How many loans have a budget of 820625?;SELECT COUNT(loan_id) FROM Loans WHERE budget = 820625;loan_db What is the name, duration and total number of clients who appear in the group with a name such as watson or gender ('male ','mamale ')?;"SELECT Clients.city, Loans.duration, COUNT(Clients.last_name) FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.last_name LIKE ""Watson"" OR Clients.gender IN ('Female', 'Male') GROUP BY Clients.first_name";loan_db How many transactions have a product_family_code different than 42046 or a primary contract-id in (80932, 99188)?;SELECT COUNT(beneficiary_id), is_fraudulent FROM Transactions WHERE product_family_code <> 42046 OR primary_contract_id IN (80932, 99188);transactions_db What is the bank_branch_id, country_code of the beneficiary with a bank_branch_id that is different than 98575 and a country name ('France', 'Belgium', 'Luxembourg', 'Germany' )?;SELECT bank_branch_id, country_code FROM Beneficiary WHERE bank_branch_id <> 98575 AND country_name IN ('France', 'Belgium', 'Luxembourg', 'Germany');transactions_db What is is_fraudulent for transactions with a primary contract ID in (92865, 99430)?;SELECT is_fraudulent FROM Transactions WHERE primary_contract_id IN (92865, 99430);transactions_db What is the Account_ID, balance of the account with a Client_ID of 59151?;SELECT account_id, balance FROM Accounts WHERE client_id = 59151;loan_db "How many deposits are there for account_id when source is different from ""check"" or the deposit_id is smaller than 80493 by deposit_id group?";"SELECT COUNT(*) FROM Deposits INNER JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source <> ""Check"" OR Deposits.deposit_id <> 80493 GROUP BY Deposits.deposit_id";loan_db "What is the unique transaction_ID and beneficiary_id when the value currency is different than ""CNH"" and the beneficiary_id is (39408, 54398)?";"SELECT DISTINCT COUNT(transaction_id), beneficiary_id FROM Transactions WHERE amount_currency <> ""CNH"" AND beneficiary_id IN (39408, 54398)";transactions_db How many deposits have an account_id in (85103, 25367)?;SELECT COUNT(source), amount FROM Deposits WHERE account_id IN (85103, 25367);loan_db "What is the amount of currency, primary contract id for transactions with is_fraudulent from ""no""?";"SELECT amount_currency, primary_contract_id FROM Transactions WHERE is_fraudulent = ""No""";transactions_db "How many countries are named ""de"" and have a country name in ('luxembourg', 'belgium')?";"SELECT COUNT(country_name), country_code FROM Beneficiary WHERE country_name IN ('Luxembourg', 'Belgium') AND country_code LIKE ""DE""";transactions_db "What is the unique country name, bank_branch_id of the beneficiary in (37251, 70097) or a country code that is different than ""FR""?";"SELECT DISTINCT country_name, bank_branch_id FROM Beneficiary WHERE bank_branch_id IN (37251, 70097) OR country_code <> ""FR""";transactions_db What is the unique number of the transaction on a timestamp with 99546 Group by Product_family_code?;SELECT DISTINCT COUNT(product_family_code), client_id FROM Transactions WHERE NOT timestamp_id <> 99546 GROUP BY product_family_code;transactions_db What is the branch identification, country code of the beneficiary with a country name in ('France', 'Luxembourg', 'England', 'Canada', 'Belgium')?;SELECT bank_branch_id, country_code FROM Beneficiary WHERE country_name IN ('France', 'Luxembourg', 'England', 'Canada', 'Belgium');transactions_db What is the counterparty_donor_id, counterparty_bank_branch_id when the counterparty_bank_branch-id is different from 7679?;SELECT counterparty_donor_id, counterparty_bank_branch_id FROM Source WHERE counterparty_bank_branch_id IN (70714, 33383) AND counterparty_donor_id <> 7679;transactions_db What is the beneficiary_id, month_number, total number of product_family_codes, client_id of the transaction in the inner sign-on time of the timestamp id for the transaction_id in the (56844, 82433) group of primary contract id?;SELECT Transactions.beneficiary_id, Time.month_number, COUNT(Transactions.product_family_code), Transactions.client_id FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_id IN (56844, 82433) GROUP BY primary_contract_id;transactions_db "What is the transaction_amount and transaction_id when the transaction_id is different from 92521 or amount_currency like ""AUD""?";"SELECT transaction_amount, transaction_id FROM Transactions WHERE transaction_id <> 92521 OR amount_currency LIKE ""AUD""";transactions_db "What is the timestamp_id, country_name and total number of product_family_codes for the transaction inner join beneficiary with an amount_currency like ""CAD"" group via primary contract id?";"SELECT Transactions.timestamp_id, Beneficiary.country_name, COUNT(Transactions.product_family_code) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency LIKE ""CAD"" GROUP BY primary_contract_id";transactions_db What is the type, city, and total number of balances for the account with a client_id of the client_id when type in the group is by type?;SELECT Accounts.type, Clients.city, COUNT(Accounts.account_id), Accounts.balance FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type IN ('Saving account', 'Deposit account') GROUP BY Accounts.type;loan_db "What is the country name of the beneficiary on a country name different from ""Germany"" or a country code in ('CA', 'UK', 'LU', 'BE', 'US', 'DE')?";"SELECT country_name FROM Beneficiary WHERE country_name <> ""Germany"" OR country_code IN ('CA', 'UK', 'LU', 'BE', 'US', 'DE')";transactions_db "What is the beneficiary_id and product_family_code when is_fraudulent is ""yes"" or the primary contract_id is 29118?";"SELECT beneficiary_id, product_family_code FROM Transactions WHERE is_fraudulent = ""Yes"" OR primary_contract_id = 29118";transactions_db What is the day number of the game that has a timestamp_id different from 88412 or a date_name in ('Wednesday', 'Friday')?;SELECT SUM(day_number) FROM Time WHERE timestamp_id <> 88412 OR day_name IN ('Wednesday', 'Friday');transactions_db "What city has a gender of ""female"" or a client - ID in (28374, 80144)?";"SELECT city FROM Clients WHERE gender = ""Female"" OR client_id IN (28374, 80144)";loan_db What is product_family_code, country_code, number of transactions joining beneficiary with beneficiary_id being beneficiary_id when client_id is different by timestamp_id than 97497?;SELECT Transactions.product_family_code, Beneficiary.country_code, COUNT(Transactions.transaction_id), Transactions.is_fraudulent FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE client_id <> 97497 GROUP BY timestamp_id;transactions_db "What is the client_id of the transaction with a primary contract_id of 92564 and a amount_currency that is different than ""EUR""?";"SELECT client_id FROM Transactions WHERE primary_contract_id = 92564 AND amount_currency <> ""EUR""";transactions_db How many loans left to join accounts on client_id of client_id when interest is less than 13 group by duration?;SELECT COUNT(*) FROM Loans LEFT JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.interest <= 13 GROUP BY Loans.duration;loan_db What is the total number of loans with an interest greater than 7 and with a duration less than 16?;SELECT COUNT(duration), budget FROM Loans WHERE interest >= 7 AND NOT duration <= 16;loan_db "What is the name, loan_id and total number of years of the client who left a loan with a first name ('Miller', 'Rodriguez', 'Martinez') or the group ""Louis"" by last name?";"SELECT Clients.city, Loans.loan_id, COUNT(Clients.year_of_birth) FROM Clients LEFT JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.first_name IN ('Miller', 'Rodriguez', 'Martinez') OR Clients.city = ""St. Louis"" GROUP BY Clients.last_name";loan_db What is the amount of deposits with an account ID in 65334, 96729)?;SELECT amount FROM Deposits WHERE account_id IN (65334, 96729);loan_db What is the total number of accounts with a client_id different than 96018 and with an account_id of 70882?;SELECT COUNT(type), client_id FROM Accounts WHERE client_id <> 96018 AND account_id = 70882;loan_db What is the beneficiary_id, year and total number of primary contract_ids for transactions that have a time on timestamp_id of timestamp_id, when amount_currency is the “CHF” group by the product_family_code?;"SELECT Transactions.beneficiary_id, Time.year, COUNT(Transactions.primary_contract_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency = ""CHF"" GROUP BY product_family_code";transactions_db What is the balance of the account with an account_id different from 73252?;SELECT balance FROM Accounts WHERE account_id <> 73252;loan_db "What is the name of the client and the duration of their first names with a last name like ""Hernandez"" group by gender?";"SELECT Clients.year_of_birth, Loans.duration, COUNT(Clients.first_name) FROM Clients INNER JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.last_name LIKE ""Hernandez"" GROUP BY Clients.gender";loan_db What is the amount, type and total deposit_id of the account_id with a not deposit_id of 1586 or an amount smaller than 329502 group by source?;SELECT Deposits.amount, Accounts.type, COUNT(Deposits.deposit_id) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE NOT Deposits.deposit_id = 1586 OR Deposits.amount <= 329502 GROUP BY Deposits.source;loan_db What is the transaction amount, day number and primary contract_id of the transaction with a time-on-time timestamp_id on timestamp_id for the amount currency in the ('JPY', 'CAD', 'CNH', 'EUR', 'AUD', 'CHF ', 'USD') group?;SELECT Transactions.transaction_amount, Time.day_number, COUNT(Transactions.primary_contract_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency IN ('JPY', 'CAD', 'NZD', 'CNH', 'EUR', 'AUD', 'CHF', 'USD') GROUP BY transaction_id;transactions_db What is the account_id and client_id of the account with a type in ('deposit account','saving account', 'loan account') or an account_id not 68555?;SELECT account_id, client_id FROM Accounts WHERE type IN ('Deposit account', 'Saving account', 'Loan account') OR account_id <> 68555;loan_db What is the beneficiary_id, day_number, total value of the product_family_code, amount_currency for the transaction in the inner merge time of timestamp_id of timestamp_id when amount_currency is in the ('HKD', 'JPY') group by the amount currency?;SELECT Transactions.beneficiary_id, Time.day_number, COUNT(Transactions.product_family_code), Transactions.amount_currency FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency IN ('HKD', 'JPY') GROUP BY amount_currency;transactions_db What is the day_name of the time with a timestamp_id different from 60646?;SELECT day_name FROM Time WHERE timestamp_id <> 60646;transactions_db "How many customers have a type of ""Loan account"" and a client_id in (73647, 69172)?";"SELECT COUNT(type), account_id FROM Accounts WHERE type = ""Loan account"" AND client_id IN (73647, 69172)";loan_db What is the transaction_id, hour_number and number of the beneficiary_id for the transaction with transaction ID (30012, 19286) and not product_family_code of the 63285 Group by primary contract_id?;SELECT Transactions.transaction_id, Time.hour_number, COUNT(Transactions.beneficiary_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_id IN (30012, 19286) AND NOT product_family_code = 63285 GROUP BY primary_contract_id;transactions_db "What is the product_family_code, year, total number of primary contract ids, client ids for transactions in the internal code time of timestamp id when amount_currency is ""AUD"" by is_fraudulent?";"SELECT Transactions.product_family_code, Time.year, COUNT(Transactions.primary_contract_id), Transactions.client_id FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency = ""AUD"" GROUP BY is_fraudulent";transactions_db What is the beneficiary_id of the beneficiary with a bank branch ID of 72995?;SELECT beneficiary_id FROM Beneficiary WHERE bank_branch_id = 72995;transactions_db How many counterparty bank branch ids have counterparty bank branch ids in (71571, 94338) or primary contract ids (85504, 13930)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_bank_branch_id IN (71571, 94338) OR primary_contract_id IN (85504, 13930);transactions_db What is the greatest month number for an hour number greater than 12?;SELECT MAX(month_number) FROM Time WHERE hour_number >= 12;transactions_db What is the transaction amount of the transaction with a transaction id in (26761, 30008) and a beneficiary id in (65001, 91632);SELECT transaction_amount FROM Transactions WHERE transaction_id IN (26761, 30008) AND beneficiary_id IN (65001, 91632);transactions_db "What is the name, balance, number of years of birth, email address for the client with a first name like ""Garcia"" group by gender?";"SELECT Clients.last_name, Accounts.balance, COUNT(Clients.year_of_birth), Clients.email FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.first_name LIKE ""Garcia"" GROUP BY Clients.gender";loan_db What is the status, gender, and total number of loans left in those clients with a client_id or a client_id when the budget is different by duration from 940343 group? :;SELECT Loans.status, Clients.gender, COUNT(Loans.duration), Loans.loan_id FROM Loans LEFT JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.budget <> 940343 GROUP BY Loans.duration;loan_db What is the budget, year of birth and the total duration for the loan in the inner Join of clients with a loan ID of client_id in (98310, 77508) or a budget larger than 26892 group by duration?;SELECT Loans.budget, Clients.year_of_birth, COUNT(Loans.duration) FROM Loans INNER JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.loan_id IN (98310, 77508) OR Loans.budget > 26892 GROUP BY Loans.duration;loan_db What is the smallest day number that has a timestamp in 70635, 39668?;SELECT MIN(day_number) FROM Time WHERE timestamp_id IN (70635, 39668);transactions_db What is the lowest amount of deposits that has a deposit_id different than 41741?;SELECT MIN(amount), source FROM Deposits WHERE deposit_id <> 41741;loan_db What is the product_family_code for transactions with beneficiary id 20855 or transaction id 96941?;SELECT product_family_code FROM Transactions WHERE beneficiary_id = 20855 OR NOT transaction_id = 96941;transactions_db What is the month number of the time on a timestamp with 67223, 80470) and a day number larger than 7?;SELECT month_number FROM Time WHERE timestamp_id IN (67223, 80470) AND day_number > 7;transactions_db How many loans have a loan_id (6261, 31030)?;SELECT COUNT(duration), client_id FROM Loans WHERE loan_id IN (6261, 31030);loan_db "What is the gender, interest, total number of cities, year of birth of the client with a first name that is different than ""Scott"" or a city like ""Philadelphia"" by email?";"SELECT Clients.gender, Loans.interest, COUNT(Clients.city), Clients.year_of_birth FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.first_name <> ""Scott"" OR Clients.city LIKE ""Philadelphia"" GROUP BY Clients.email";loan_db What is the client_id of the contract with a primary contract_id of 97853?;SELECT client_id FROM Source WHERE primary_contract_id = 97853;transactions_db How many bank branch ids are there for the beneficiary in different country codes ('CA', 'DE', 'US', 'FR', 'BE') and a beneficiary id than 95111?;SELECT COUNT(bank_branch_id) FROM Beneficiary WHERE country_code IN ('CA', 'DE', 'US', 'FR', 'BE') AND beneficiary_id <> 95111;transactions_db What is the bank_branch_id of the beneficiary with a bank branch_id different from 96184?;SELECT bank_branch_id FROM Beneficiary WHERE bank_branch_id <> 96184;transactions_db "How many transactions have a fraud is different than ""yes"" and a product family code of 84909?";"SELECT COUNT(is_fraudulent) FROM Transactions WHERE is_fraudulent <> ""Yes"" AND product_family_code = 84909";transactions_db What is the unique number of client_ids when the client_id is different from 63?;SELECT DISTINCT COUNT(client_id) FROM Source WHERE client_id <> 63;transactions_db How many deposits have an account_id of 11742?;SELECT COUNT(source) FROM Deposits WHERE account_id = 11742;loan_db What is the Account_ID of the account with a Client_ID different than 80772?;SELECT account_id FROM Accounts WHERE client_id <> 80772;loan_db How many deposits have 565992 as the sum?;SELECT COUNT(*) FROM Deposits WHERE amount = 565992;loan_db What year, timestamp_id has a day number of 1 and 11 or a year of 2010 and 2022?;SELECT year, timestamp_id FROM Time WHERE day_number BETWEEN 1 AND 11 OR year BETWEEN 2010 AND 2022;transactions_db What is the account_id of the account number (47787, 1986)?;SELECT account_id FROM Accounts WHERE account_id IN (47787, 1986);loan_db What is the loan_id, balance and total number of the status of the loan with a duration greater than 19 and less than 3 if the group is the loan_id?;SELECT Loans.loan_id, Accounts.balance, COUNT(Loans.status) FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.duration >= 19 AND Loans.interest < 3 GROUP BY Loans.loan_id;loan_db What is the transaction_amount when the transaction ID is different than 94839?;SELECT transaction_amount FROM Transactions WHERE transaction_id <> 94839;transactions_db "What is the beneficiary_id, counterparty bank branch id, total number of product family code, timestamp_id of the transaction that has a source on primary contract id of primary contract id, when amount_currency is like ""cnh"" or when product family code is different than 99596 group by timestamp id?";"SELECT Transactions.beneficiary_id, Source.counterparty_bank_branch_id, COUNT(Transactions.product_family_code), Transactions.timestamp_id FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE amount_currency LIKE ""CNH"" OR product_family_code <> 99596 GROUP BY timestamp_id";transactions_db "What is balance, budget and total number of types of loans which join with an account_id of 43733 or a type like ""Loan account"" by type?";"SELECT Accounts.balance, Loans.budget, COUNT(Accounts.type) FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.account_id = 43733 OR Accounts.type LIKE ""Loan account"" GROUP BY Accounts.type";loan_db How many deposits have a deposit_id of (41300, 26539)?;SELECT COUNT(*) FROM Deposits WHERE deposit_id IN (41300, 26539);loan_db What is the primary contract ID of the bank with a primary contract ID different than 98492 and a bank branch ID smaller than 1121?;SELECT primary_contract_id FROM Source WHERE primary_contract_id <> 98492 AND counterparty_bank_branch_id <> 1121;transactions_db What is the account_id and the client_id of the account with a client_id of 66337 and a savings account' or deposit account'?;SELECT account_id, client_id FROM Accounts WHERE client_id = 66337 AND type IN ('Saving account', 'Deposit account');loan_db What is the month number, week number of the episode with a week number larger than 6?;SELECT month_number, week_number FROM Time WHERE week_number >= 6;transactions_db What is the group is_fraudulent, counterparty_donor_id, total transaction amount for the transaction amount different than 88644 and beneficiary_id less than 52014?;SELECT Transactions.is_fraudulent, Source.counterparty_donor_id, COUNT(Transactions.transaction_amount) FROM Transactions INNER JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_amount <> 88644 AND beneficiary_id <> 52014 GROUP BY transaction_amount;transactions_db What is the primary contract ID of the company with a primary contract ID 91547 and a counterparty donor ID 91595?;SELECT primary_contract_id FROM Source WHERE primary_contract_id = 91547 AND counterparty_donor_id = 91595;transactions_db "What is the total number of timestamp id, week_number for year after 2021 and the daystamp named ""Tuesday""?";"SELECT COUNT(timestamp_id), week_number FROM Time WHERE year >= 2021 AND day_name = ""Tuesday""";transactions_db What is the branch_id of the beneficiary with a beneficiary_id of 40248?;SELECT bank_branch_id FROM Beneficiary WHERE beneficiary_id = 40248;transactions_db How many loans have a budget of less than 462727 and a borrowing ID that is different than 10894?;SELECT COUNT(loan_id), duration FROM Loans WHERE budget < 462727 AND NOT loan_id <> 10894;loan_db What is the product_family_code, counterparty_donor_id, transaction_amount, transaction_id of the transaction left on the primary contract_id of the primary contract_id, when timestamp_id is in (40385, 72118) or when product_family code is in (23285, 68077) group by client id?;SELECT Transactions.product_family_code, Source.counterparty_donor_id, COUNT(Transactions.transaction_amount), Transactions.transaction_id FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE timestamp_id IN (40385, 72118) OR product_family_code IN (23285, 68077) GROUP BY client_id;transactions_db "What is the primary contract id, hour number, total amount of currency, transaction_amount for the transaction that has a time on timestamp_id of timestamp_id, when the amount currencies is different than ""euros"" or when the transaction amount is 97756 by group id?";"SELECT Transactions.primary_contract_id, Time.hour_number, COUNT(Transactions.amount_currency), Transactions.transaction_amount FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency <> ""EUR"" OR transaction_amount = 97756 GROUP BY client_id";transactions_db How many clients have a client_id (82380, 56371) or a gender like Female ?;"SELECT COUNT(*) FROM Clients WHERE client_id IN (82380, 56371) OR gender LIKE ""Female""";loan_db What is the last name, interest and total number of clients left in joining loans with client_id of client_id when not of female gender or when email is by first name in (ma', ma') group?;SELECT Clients.last_name, Loans.interest, COUNT(Clients.first_name) FROM Clients LEFT JOIN Loans ON Clients.client_id = Loans.client_id WHERE NOT Clients.gender = Female OR Clients.email IN ('sanchez.williams@cs.ma', 'hughes.smith@cs.ma') GROUP BY Clients.first_name;loan_db What is the sum of the week and month number of the time with a year bigger than 2009 and hour number 22?;SELECT SUM(week_number), month_number FROM Time WHERE year >= 2009 AND hour_number = 22;transactions_db What is the week number, timestamp id of the episode with a month number between 3 and 6 and a week number larger than 2?;SELECT week_number, timestamp_id FROM Time WHERE month_number BETWEEN 3 AND 6 AND week_number > 2;transactions_db "What is the lowest amount of deposit that has a source different than ""transaction""?";"SELECT MIN(amount), account_id FROM Deposits WHERE source <> ""Transaction""";loan_db What is the deposit amount for the account ID 78457?;SELECT * FROM Deposits WHERE account_id = 78457;loan_db "What is balance, last_name and total number of types of accounts that clients join on client_id of client_id for the ""deposit account"" group by account_id?";"SELECT Accounts.balance, Clients.last_name, COUNT(Accounts.type) FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type = ""Deposit account"" GROUP BY Accounts.account_id";loan_db How many customers have a first name of Phillips?;SELECT COUNT(email), first_name FROM Clients WHERE NOT first_name = Phillips;loan_db What is the product_family_code, timestamp_id of the transaction with a client id (29085, 24109) or a product_family_code different than 62348?;SELECT product_family_code, timestamp_id FROM Transactions WHERE client_id IN (29085, 24109) OR product_family_code <> 62348;transactions_db What is the greatest day number and hour number of the time with an hour number of 10 and a day number larger than 20?;SELECT MAX(day_number), hour_number FROM Time WHERE hour_number = 10 AND day_number >= 20;transactions_db "What is the client_id and product_family_code for transactions with an amount currency like ""USD"" or a client_id of 53348?";"SELECT client_id, product_family_code FROM Transactions WHERE amount_currency LIKE ""USD"" OR client_id = 53348";transactions_db "What is the sum of deposits with an amount greater than 312907 and a source of ""checks""?";"SELECT SUM(amount) FROM Deposits WHERE amount >= 312907 AND source = ""Check""";loan_db "What is the gender of the client with a gender like a ""female""?";"SELECT gender FROM Clients WHERE gender LIKE ""Female""";loan_db What is the budget for the loan with a budget different than 860816 and client_id in (47276, 16627)?;SELECT budget FROM Loans WHERE NOT budget <> 860816 AND client_id IN (47276, 16627);loan_db What is the loan amount for the institution with a budget smaller than 824152?;SELECT * FROM Loans WHERE budget <> 824152;loan_db What is the deposit amount for the transaction at a price between 40144 and 736868?;"SELECT * FROM Deposits WHERE source LIKE ""Transaction"" AND amount BETWEEN 40144 AND 736868";loan_db What is is_fraudulent, counterparty bank branch id, total number of timestamp ids for transactions in the internal code source for the primary contract id of primary contract id when the transaction id is different from 82295 and when the beneficiary id is 65390 GROUP by is_fraudulent?;SELECT Transactions.is_fraudulent, Source.counterparty_bank_branch_id, COUNT(Transactions.timestamp_id) FROM Transactions INNER JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_id <> 82295 AND beneficiary_id = 65390 GROUP BY is_fraudulent;transactions_db What is the product_family_code, bank branch_id and the total number of timestamp ids for transactions left for the beneficiary on beneficiary_id of beneficiary_id when timestamp_id is in the 79287, 74924 group of transaction id?;SELECT Transactions.product_family_code, Beneficiary.bank_branch_id, COUNT(Transactions.timestamp_id) FROM Transactions LEFT JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id IN (79287, 74924) GROUP BY transaction_id;transactions_db What is the transaction_id, hour_number, total number of the transaction_amount, client_id of the transaction that has a time value on timestamp_id of timestamp_id when the client_id is different from 77189, or when transaction_id is in the group (93365, 85358) by transaction amount?;SELECT Transactions.transaction_id, Time.hour_number, COUNT(Transactions.transaction_amount), Transactions.client_id FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE client_id <> 77189 OR transaction_id IN (93365, 85358) GROUP BY transaction_amount;transactions_db What is the day number of the year on after 2020 with a day number larger than 17?;SELECT day_number FROM Time WHERE year > 2020 AND day_number >= 17;transactions_db "What city has a client_id of ( 68748, 45764) or a city called ""New York City""?";"SELECT city FROM Clients WHERE client_id IN (68748, 45764) OR city LIKE ""New York City""";loan_db What is the duration of the loan with a budget less than 602787?;SELECT duration, loan_id FROM Loans WHERE budget <= 602787;loan_db What is the balance of the account with a balance less than 984116 and a type of loan account?;"SELECT balance FROM Accounts WHERE balance <= 984116 AND type = ""Loan account""";loan_db "What is the transaction_id of the transaction with an amount_currency like ""CNH"" or a primary contract_id of 63293?";"SELECT transaction_id FROM Transactions WHERE amount_currency LIKE ""CNH"" OR primary_contract_id = 63293";transactions_db What is the total number of timestamp id for the year 2019 and month number 6?;SELECT COUNT(timestamp_id) FROM Time WHERE NOT year = 2019 AND month_number = 6;transactions_db "What city, last_name has a city like ""Nashville"" or a client_id in (99853, 57111)?";"SELECT city, last_name FROM Clients WHERE city LIKE ""Nashville"" OR client_id IN (99853, 57111)";loan_db How many times is the primary contract id 42419?;SELECT COUNT(counterparty_bank_branch_id), primary_contract_id FROM Source WHERE primary_contract_id = 42419;transactions_db How many deposits have a deposit_id (85114, 81957) in?;SELECT COUNT(*) FROM Deposits WHERE deposit_id IN (85114, 81957);loan_db "What is the deposit_id of 73106 or a source like ""Check""?";"SELECT * FROM Deposits WHERE deposit_id = 73106 OR source LIKE ""Check""";loan_db How many countries have a bank branch ID of 99533?;SELECT COUNT(country_name), country_code FROM Beneficiary WHERE bank_branch_id = 99533;transactions_db What is the client_id and counterparty_donor_id of the party that has a not(counterparty_bank branch ID in (80828, 85123)) or primary contract # 73638?;SELECT client_id, counterparty_donor_id FROM Source WHERE NOT(counterparty_bank_branch_id IN (80828, 85123)) OR primary_contract_id = 73638;transactions_db "How many emails are there for the client on the first_name in (92064, 46815) in the group ""Buffle""";"SELECT COUNT(email) FROM Clients WHERE client_id IN (92064, 46815) AND city = ""Buffalo"" GROUP BY first_name";loan_db "What is the gender of the client with a gender different than ""male""?";"SELECT gender FROM Clients WHERE NOT(client_id IN (15616, 66912)) AND gender <> ""Male""";loan_db What is the name of the client with a year of birth in 2007?;SELECT email FROM Clients WHERE year_of_birth < 2007;loan_db "What is the name, type, number of years of birth, email address for the client with a first name like ""Roberts"" and a city that is unique from the Houston Group by first name?";"SELECT Clients.first_name, Accounts.type, COUNT(Clients.year_of_birth), Clients.email FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.first_name LIKE ""Roberts"" AND NOT Clients.city <> Houston GROUP BY Clients.first_name";loan_db What is the account_id of the deposit with an amount of 801688?;SELECT account_id FROM Deposits WHERE amount = 801688;loan_db "What is the primary contract id, month_number, number of the recipient id, client id for the transaction inner join time of timestamp_id of timestamp_id when the transaction id is 49249 or amount_currency like group ""cnh"" by transaction_id?";"SELECT Transactions.primary_contract_id, Time.month_number, COUNT(Transactions.beneficiary_id), Transactions.client_id FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_id = 49249 OR amount_currency LIKE ""CNH"" GROUP BY transaction_id";transactions_db What is the unique number of the branch ID of the counterparty bank when the counterparty bank donor ID is 90764 or the branch ID of the counterparty bank is 66985?;SELECT DISTINCT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_donor_id = 90764 OR counterparty_bank_branch_id = 66985;transactions_db How many bank branch ids are there for the beneficiary in with a country_code ('UK', 'us') and a beneficiary_id (79648, 54088)?;SELECT COUNT(bank_branch_id) FROM Beneficiary WHERE country_code IN ('UK', 'US') AND beneficiary_id IN (79648, 54088);transactions_db What is the deposit_id, type and total number of deposits joining accounts with account_id when deposit_id is 64113 Group by deposit_id?;SELECT Deposits.deposit_id, Accounts.type, COUNT(Deposits.source) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id = 64113 GROUP BY Deposits.deposit_id;loan_db How many times is the counterparty_bank branch_id different from 52816 or is the counterparty bank branch ID smaller than 98089?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_bank_branch_id <> 52816 OR counterparty_donor_id <> 98089;transactions_db How many different client_ids are there for counterparty_donor_id (44702, 66242) and client_id in (75918, 59681)?;SELECT COUNT(client_id), counterparty_donor_id FROM Source WHERE counterparty_donor_id IN (44702, 66242) AND client_id IN (75918, 59681);transactions_db What is the balance type of the account on the client-id in (65116, 71250)?;SELECT balance, type FROM Accounts WHERE client_id IN (65116, 71250);loan_db What year was the client born with a first name of ('Allen', 'Henderson', 'Flores')?;SELECT year_of_birth, city FROM Clients WHERE NOT(first_name IN ('Allen', 'Henderson', 'Flores'));loan_db What is the country code, country name of the beneficiary with a country name in Belgium, Germany, Canada and a beneficiary_id of 75778?;SELECT country_code, country_name FROM Beneficiary WHERE country_name IN ('Belgium', 'Germany', 'Canada') AND beneficiary_id = 75778;transactions_db How many deposits have an account_id in (24682, 25115) or a source like transaction''?;"SELECT COUNT(source), amount FROM Deposits WHERE account_id IN (24682, 25115) OR source LIKE ""Transaction""";loan_db What is the transaction_amount, day_name, total number of product family code, transaction id for the transaction left that has a time on timestamp_id of timestamp_id for the product family code in the (81767, 73818) group by beneficiary id?;SELECT Transactions.transaction_amount, Time.day_name, COUNT(Transactions.product_family_code), Transactions.transaction_id FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code IN (81767, 73818) GROUP BY beneficiary_id;transactions_db What is the source of the deposit with a deposit_id different from 82660?;SELECT source FROM Deposits WHERE deposit_id <> 82660;loan_db How many deposits have an amount of 723487 or have a deposit_id different from 92817?;SELECT COUNT(deposit_id) FROM Deposits WHERE amount = 723487 OR deposit_id <> 92817;loan_db What is the beneficiary_id, hour_number, total number of product_family_codes, primary contract ID of the transaction that has a time value on timestamp_id of timestamp_id when the amount currency is in ('JPY', 'CAD', 'GBP') and when beneficiary_id is 88252 of the product family code group?;SELECT Transactions.beneficiary_id, Time.hour_number, COUNT(Transactions.product_family_code), Transactions.primary_contract_id FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency IN ('JPY', 'CAD', 'GBP') AND beneficiary_id = 88252 GROUP BY product_family_code;transactions_db What is the counterparty_donor_id of the contract with primary contract id from 77829?;SELECT counterparty_donor_id FROM Source WHERE primary_contract_id <> 77829;transactions_db What is the country code of the beneficiary on the beneficiary_id in 78658, 79699?;SELECT country_code FROM Beneficiary WHERE beneficiary_id IN (78658, 79699);transactions_db How many banks have a bank branch ID of 36250 or a not(beneficiary_ID in (97144, 97253))?;SELECT COUNT(bank_branch_id), country_code FROM Beneficiary WHERE bank_branch_id = 36250 OR NOT(beneficiary_id IN (97144, 97253));transactions_db What is the greatest(budget) loan ID for loans with a 7 + interest rate?;SELECT MAX(budget), loan_id FROM Loans WHERE interest < 7;loan_db What is the duration of the loan with a loan_id in (42562, 12292)?;SELECT duration FROM Loans WHERE loan_id IN (42562, 12292);loan_db "What is the unique is_fraudulent, bank branch id, total number of product family codes for the transaction in the inner join beneficiary with an amount currency like the ""AUD"" group by product family code?";"SELECT DISTINCT Transactions.is_fraudulent, Beneficiary.bank_branch_id, COUNT(Transactions.product_family_code) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency LIKE ""AUD"" GROUP BY product_family_code";transactions_db What is the unique is_fraudulent week number, total amount of currency for transactions that link time on timestamp_id of timestamp_id when primary contract_id is 50043 or the product_family_code is in 30888, 94143) group of primary contract-id;SELECT DISTINCT Transactions.is_fraudulent, Time.week_number, COUNT(Transactions.amount_currency) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE NOT primary_contract_id = 50043 OR product_family_code IN (30888, 94143) GROUP BY primary_contract_id;transactions_db "What is the bank_branch_id, beneficiary_id of the beneficiary with a country code like ""UK"" or bank_branch_id in (19477, 52099)?";"SELECT bank_branch_id, beneficiary_id FROM Beneficiary WHERE country_code LIKE ""UK"" OR bank_branch_id IN (19477, 52099)";transactions_db How many countries have a beneficiary_id (27904, 76144) and a bank branch id (82044, 74374)?;SELECT COUNT(country_code) FROM Beneficiary WHERE beneficiary_id IN (27904, 76144) AND bank_branch_id IN (82044, 74374);transactions_db What is the client_id, status of the loan with an interest below 10?;SELECT client_id, status FROM Loans WHERE NOT interest <> 10;loan_db What is the unique account_ID source if not account_id is different than 5951 or the source is > transaction?;"SELECT DISTINCT account_id, source FROM Deposits WHERE NOT account_id <> 5951 OR source <> ""Transaction""";loan_db What is the status, interest of loan on an interest greater than 13?;SELECT status, interest FROM Loans WHERE interest > 13;loan_db What is the fraud-dead on the transaction id for transactions with a transaction amount larger than 38287 or amount_currency in ('CHF', 'EUR', 'NZD', 'GBP', 'JPY')?;SELECT is_fraudulent, transaction_id FROM Transactions WHERE transaction_amount > 38287 OR amount_currency IN ('CHF', 'EUR', 'NZD', 'GBP', 'JPY');transactions_db "What is the country code, beneficiary_id of the beneficiary with a country code like ""DE"" and a beneficiary_id of 2063?";"SELECT country_code, beneficiary_id FROM Beneficiary WHERE country_code LIKE ""DE"" AND beneficiary_id = 2063";transactions_db What is the name, budget, gender, the year of birth of the client with a client_id of the client_id if the town is different than Seattle, or when the first name is not a Parker Group?;"SELECT Clients.email, Loans.budget, COUNT(Clients.gender), Clients.year_of_birth FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.city <> ""Seattle"" OR NOT Clients.first_name <> Parker GROUP BY Clients.first_name";loan_db What is the account_id and source of the deposit with a deposit_id different from 73414 and an amount smaller than 458472?;SELECT account_id, source FROM Deposits WHERE deposit_id <> 73414 AND amount <> 458472;loan_db What is the unique number of loans with interest less than 19 group by budget?;SELECT DISTINCT COUNT(*) FROM Loans WHERE interest < 19 GROUP BY budget;loan_db How many accounts have a balance larger than 970698 or a client_id in (62412, 85916)?;SELECT COUNT(*) FROM Accounts WHERE balance > 970698 OR client_id IN (62412, 85916);loan_db What is the gender, email address of the client with a first name in ('Hill', 'Harris', 'Simmons') and not ('Phoenix', 'Minneapolis', 'Boston')?;SELECT gender, email FROM Clients WHERE first_name IN ('Hill', 'Harris', 'Simmons') AND NOT(city IN ('Phoenix', 'Minneapolis', 'Boston'));loan_db What is the budget for the duration of the loan between 10 and 12 with a budget greater than 753460?;SELECT budget FROM Loans WHERE duration BETWEEN 10 AND 12 AND budget >= 753460;loan_db What is the lowest amount of deposits with an amount greater than 511549 or deposit_id (97429, 96605)?;SELECT MIN(amount) FROM Deposits WHERE amount >= 511549 OR deposit_id IN (97429, 96605);loan_db "What is the account_id, first name and balance of the ""Loan account"" group?";"SELECT Accounts.account_id, Clients.first_name, COUNT(Accounts.balance) FROM Accounts INNER JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type = ""Loan account"" GROUP BY Accounts.account_id";loan_db "What is the name, type, gender, last name of the client with first name like ""Flores"" and a year of birth larger than the 1966 group by year of birth?";"SELECT Clients.city, Accounts.type, COUNT(Clients.gender), Clients.last_name FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.first_name LIKE ""Flores"" AND Clients.year_of_birth > 1965 GROUP BY Clients.year_of_birth";loan_db "How many loans have a status of ""current"", and a loan_id (66783, 10701)?";"SELECT COUNT(interest), client_id FROM Loans WHERE status LIKE ""current"" AND loan_id IN (66783, 10701)";loan_db "How many transactions have an amount_currency like ""JPY"" or a transaction id that is different than 20360?";"SELECT COUNT(product_family_code), transaction_id FROM Transactions WHERE amount_currency LIKE ""JPY"" OR transaction_id <> 20360";transactions_db What is the amount of currency, hour_number and transaction_id for the transaction with a transaction id different than 97940 and a client_id in the group (67616, 90638) with the client_id?;SELECT Transactions.amount_currency, Time.hour_number, COUNT(Transactions.transaction_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_id <> 97940 AND client_id IN (67616, 90638) GROUP BY client_id;transactions_db What is the amount of currency which is fraudulent for transactions with amount in ('nzd', 'cnh', 'usd', 'cf')?;SELECT amount_currency, is_fraudulent FROM Transactions WHERE amount_currency IN ('NZD', 'CNH', 'USD', 'CHF');transactions_db What is the transaction_id, week_number and total transaction amount for the transaction that has a time on timestamp_id on timestamp_id, when beneficiary_id is different from 1491 group by client_id?;SELECT Transactions.transaction_id, Time.week_number, COUNT(Transactions.transaction_amount) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE beneficiary_id IN (82698, 7099) OR primary_contract_id <> 1491 GROUP BY client_id;transactions_db What is the timestamp_id of the time with a day value less than 4?;SELECT timestamp_id FROM Time WHERE day_number <= 4;transactions_db What is the client_id of the server with a client_id of 68016?;SELECT client_id FROM Source WHERE client_id = 68016;transactions_db How many times is the counterparty_donor_id different from 28364 or the counterparty_bank_branch_id (16344, 93432)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_donor_id <> 28364 OR counterparty_bank_branch_id IN (16344, 93432);transactions_db What is the earliest year, day_name with a timestamp id in (98340, 90162) or a day-number smaller than 19?;SELECT MIN(year), day_name FROM Time WHERE timestamp_id IN (98340, 90162) OR day_number <= 19;transactions_db How many loans have a loan_id different than 59089 or a budget smaller than 700361?;SELECT COUNT(interest), client_id FROM Loans WHERE loan_id <> 59089 OR budget <= 700361;loan_db "How many deposits have a source like ""check"" and an account_id of 69017 group?";"SELECT COUNT(deposit_id) FROM Deposits WHERE source LIKE ""Check"" AND account_id = 69017 GROUP BY source";loan_db "What is balance, deposit_ID and total number of deposits on account_id of account_id when the client ID is different than 74216 and the type is ""deposit account"" group by type?";"SELECT Accounts.balance, Deposits.deposit_id, COUNT(Accounts.type) FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.client_id <> 74216 AND Accounts.type LIKE ""Deposit account"" GROUP BY Accounts.type";loan_db How many customers have a client_id different than 9696?;SELECT COUNT(type), balance FROM Accounts WHERE client_id <> 9696;loan_db What type of client_id has an account_id different from 32506 and a client_id in (67587, 40356)?;SELECT type, client_id FROM Accounts WHERE account_id <> 32506 AND client_id IN (67587, 40356);loan_db "What is the transaction amount when is_fraudulent is different than ""No""?";"SELECT transaction_amount, amount_currency FROM Transactions WHERE is_fraudulent <> ""No""";transactions_db What is the primary contract id, the client id in the client ID (22461, 1259)?;SELECT primary_contract_id, client_id FROM Source WHERE client_id IN (22461, 1259);transactions_db How many loans have a budget smaller than 883930?;SELECT COUNT(interest) FROM Loans WHERE budget <= 883930;loan_db What is the client_id, counterparty bank branch_id, and the total number of is_fraudulent transactions that join source on the primary contract_id of primary contract_id, when the client_id is different from 28344 or when the beneficiary id 86078 is a product_family_code?;SELECT Transactions.client_id, Source.counterparty_bank_branch_id, COUNT(Transactions.is_fraudulent) FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE client_id <> 28344 OR beneficiary_id = 86078 GROUP BY product_family_code;transactions_db How many deposits left to join accounts on account_id account id when deposit_id is (44363, 80837) or amount on 287635 GROUP by deposit_id?;SELECT COUNT(*) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (44363, 80837) OR Deposits.amount > 387635 GROUP BY Deposits.deposit_id;loan_db How many different primary contract ids, client ids have a counterparty bank branch id different than 25197?;SELECT COUNT(primary_contract_id), client_id FROM Source WHERE counterparty_bank_branch_id <> 25197;transactions_db What is the total number of accounts with a type in ('Loan Account', 'Deposit Account', 'Saving Account') or balance between 885898 and 960500?;SELECT COUNT(account_id), client_id FROM Accounts WHERE type IN ('Loan account', 'Deposit account', 'Saving account') OR balance BETWEEN 885898 AND 960500;loan_db What is the loan_id of the loan with a not duration of 27 or a loan_id of 73996?;SELECT loan_id FROM Loans WHERE NOT duration = 27 OR loan_id = 73996;loan_db What is the day number, week number if the week number is less than 1 or when timestamp id is 75750?;SELECT day_number, week_number FROM Time WHERE week_number < 1 OR timestamp_id = 75750;transactions_db What is the unique number of accounts for the deposit account?;"SELECT DISTINCT COUNT(type) FROM Accounts WHERE type = ""Deposit account""";loan_db How many different numbers are there for the counterparty donor ID, the counterparty bank branch ID and a primary contract ID 50847 or a counterparty donor ID which is different than 94297?;SELECT COUNT(counterparty_donor_id), counterparty_bank_branch_id FROM Source WHERE primary_contract_id = 50847 OR counterparty_donor_id <> 94297;transactions_db What is the status, gender and total number of budgets left for the loan with a duration greater than 18 or 961887 group of budget by duration?;SELECT Loans.status, Clients.gender, COUNT(Loans.budget) FROM Loans LEFT JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.duration > 18 OR Loans.budget = 961887 GROUP BY Loans.duration;loan_db How many times is the counterparty_bank branch - id 78606 different or is the client - ID smaller than 93158?;SELECT COUNT(counterparty_bank_branch_id), client_id FROM Source WHERE counterparty_bank_branch_id <> 78606 OR client_id <> 93158;transactions_db "What is the client_id of the client in ""Louisville"" or an email as ""Ma""?";"SELECT client_id FROM Clients WHERE city = ""Louisville"" OR email LIKE ""wright.johnson@cs.ma""";loan_db What is the week number, day number of the episode with a week number less than 4?;SELECT week_number, day_number FROM Time WHERE week_number <= 4;transactions_db What is the branch id of the counterparty bank, client id of the bank with a counterparty donor id of 78117?;SELECT counterparty_bank_branch_id, client_id FROM Source WHERE counterparty_donor_id = 78117;transactions_db "What is the type, budget and total number of account_ids for the account with a type like ""deposit account"" or different by type than 36501 group?";"SELECT Accounts.type, Loans.budget, COUNT(Accounts.account_id) FROM Accounts INNER JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.type LIKE ""Deposit account"" OR Accounts.account_id <> 36501 GROUP BY Accounts.type";loan_db What is the amount of currency, counterparty bank branch_id and the total number of timestamp id for the transaction with transaction ID in the group (32653, 78536) by timestamp id?;SELECT Transactions.amount_currency, Source.counterparty_bank_branch_id, COUNT(Transactions.timestamp_id) FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_id IN (32653, 78536) GROUP BY timestamp_id;transactions_db How many loans have a interest of less than 3 or a term higher than 24?;SELECT COUNT(interest), status FROM Loans WHERE interest <= 3 OR duration >= 24;loan_db "How many transactions have an is_fraudulent of ""no"" or a product_family_code that are different than 92134?";"SELECT COUNT(amount_currency) FROM Transactions WHERE is_fraudulent = ""No"" OR product_family_code <> 92134";transactions_db How many transactions have a primary contract ID different than 64508 and transaction ID of 47140?;SELECT COUNT(beneficiary_id), primary_contract_id FROM Transactions WHERE primary_contract_id <> 64508 AND transaction_id = 47140;transactions_db What is the balance, loan_id, total( account_id) type of account with a client_id of client_id and not account_id of 99742 and a 'deposit account' group by type?;"SELECT Accounts.balance, Loans.loan_id, COUNT(Accounts.account_id), Accounts.type FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE NOT Accounts.account_id = 99742 AND Accounts.type = ""Deposit account"" GROUP BY Accounts.type";loan_db What is the transaction_id, hour_number, total number of client_id, beneficiary_id for the transaction that has primary contract id of 68639 Group by beneficiary_id?;SELECT Transactions.transaction_id, Time.hour_number, COUNT(Transactions.client_id), Transactions.beneficiary_id FROM Transactions RIGHT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE primary_contract_id = 68639 GROUP BY beneficiary_id;transactions_db What is the duration, balance, total interest rate for the loan left with the same client_id of the client_id when the status is different by duration than the paid group?;"SELECT Loans.duration, Accounts.balance, COUNT(Loans.loan_id), Loans.interest FROM Loans LEFT JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.status <> ""paid off"" GROUP BY Loans.duration";loan_db What is the counterparty_bank branch ID of the bank with a client ID in (69414, 61301) and a counterparty-bank branch ID which is different than 20277?;SELECT counterparty_bank_branch_id FROM Source WHERE client_id IN (69414, 61301) AND counterparty_bank_branch_id <> 20277;transactions_db How many customers were born between 1988 and 1995?;SELECT COUNT(gender), last_name FROM Clients WHERE year_of_birth BETWEEN 1988 AND 1995;loan_db What is the unique number of the client ID when the counterparty bank branch ID is different than 80627 or the counterparty donor ID (91047, 81720) is?;SELECT DISTINCT COUNT(client_id) FROM Source WHERE counterparty_bank_branch_id <> 80627 OR counterparty_donor_id IN (91047, 81720);transactions_db What is the amount of deposits when the account ID (4549, 56427) is and the deposit_ID is different than 72365?;SELECT amount FROM Deposits WHERE account_id IN (4549, 56427) AND NOT deposit_id <> 72365;loan_db What is the loan_id of the loan with a budget less than 796627 and a loan_id that is different than 97264?;SELECT loan_id FROM Loans WHERE budget <= 796627 AND loan_id <> 97264;loan_db What is the week number of the episode with a timestamp_id of 61300 or a week number smaller than 4?;SELECT week_number FROM Time WHERE timestamp_id = 61300 OR week_number <= 4;transactions_db What is the transaction_id, bank branch_id and the total number of timestamps ids for the transaction if the beneficiary is the amount in the ('JPY', 'CAD', 'USD', 'CHF') group by product-family_code?;SELECT Transactions.transaction_id, Beneficiary.bank_branch_id, COUNT(Transactions.timestamp_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency IN ('JPY', 'CAD', 'USD', 'CHF') GROUP BY product_family_code;transactions_db How many customers have a counterparty_donor_id of 86732?;SELECT COUNT(client_id) FROM Source WHERE counterparty_donor_id = 86732;transactions_db How many customers were born in 1958?;SELECT COUNT(client_id), email FROM Clients WHERE year_of_birth = 1958;loan_db What year was the timetamp for the year after 2022?;SELECT year, timestamp_id FROM Time WHERE year >= 2022;transactions_db What is the total number of transactions where is_fraudulent is different than + ou client_id (80978, 59835)?;"SELECT COUNT(timestamp_id), amount_currency FROM Transactions WHERE is_fraudulent <> ""Yes"" OR client_id IN (80978, 59835)";transactions_db How many loans have a duration between 13 and 22 months?;SELECT COUNT(client_id) FROM Loans WHERE duration BETWEEN 13 AND 22;loan_db What is the deposit_id, source of the deposit which has different deposit_ids from 78927?;SELECT deposit_id, source FROM Deposits WHERE NOT deposit_id <> 78927;loan_db What is the primary contract id, counterparty bank branch id when client id is different from 40067 or counterparty donor id is 39399, 72056)?;SELECT primary_contract_id, counterparty_bank_branch_id FROM Source WHERE client_id <> 40067 OR counterparty_donor_id IN (39399, 72056);transactions_db What is the source, client_id and total deposit_id of the deposits with account_id of the account_id when deposit_id is in the (96106, 52850) group by deposit_id?;SELECT Deposits.source, Accounts.client_id, COUNT(Deposits.deposit_id) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (96106, 52850) GROUP BY Deposits.deposit_id;loan_db What is the unique transaction_ID of the transaction with a transaction value higher than 88338?;SELECT DISTINCT transaction_id FROM Transactions WHERE transaction_amount > 88338;transactions_db What is the duration, account_id, total(budget), interest value for the loan with a not budget between 845626 and 907343 group by loan_id?;SELECT Loans.duration, Accounts.account_id, COUNT(Loans.budget), Loans.interest FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE NOT Loans.budget BETWEEN 845626 AND 907343 GROUP BY Loans.loan_id;loan_db How many deposits have an account_id different than 17697?;SELECT COUNT(source), deposit_id FROM Deposits WHERE account_id <> 17697;loan_db How many times is the day name different than the Thursday one?;"SELECT COUNT(week_number), year FROM Time WHERE day_name <> ""Thursday""";transactions_db How many deposits have a deposit_id different than 72548 or an account_id smaller than 13639?;SELECT COUNT(*) FROM Deposits WHERE deposit_id <> 72548 OR account_id <> 13639;loan_db What week number has a year before 2021 and a day name of Friday?;SELECT week_number FROM Time WHERE year < 2021 AND NOT day_name = Friday;transactions_db What is the client_id, country_name and total number of product family codes for the transaction inside join beneficiary with a client ID in (27045, 72206) and amount currency in group ( 'AUD', 'EUR', 'CHF' )?;SELECT Transactions.client_id, Beneficiary.country_name, COUNT(Transactions.product_family_code) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE client_id IN (27045, 72206) AND amount_currency IN ('AUD', 'EUR', 'CHF') GROUP BY transaction_id;transactions_db What is the total number of primary contract ID, client ID, when the counterparty_donor id is (70390, 97582) and when the client id (91627, 88029)?;SELECT COUNT(primary_contract_id), client_id FROM Source WHERE counterparty_donor_id IN (70390, 97582) AND client_id IN (91627, 88029);transactions_db "What is the sum of deposits with a deposit_id different from 89684 or a source > ""check"" group by account_id?";"SELECT SUM(amount) FROM Deposits WHERE deposit_id <> 89684 OR source <> ""Check"" GROUP BY account_id";loan_db What is the total number of timestamp_id, week_number when the week_number is not 1 group by timestamp_id?;SELECT COUNT(timestamp_id), week_number FROM Time WHERE NOT week_number = 1 GROUP BY timestamp_id;transactions_db "What city is the client with first name ""Carter""?";"SELECT city FROM Clients WHERE first_name = ""Carter""";loan_db How many loans are associated with the client ID of the client ID when the loan ID is 81892 group?;SELECT COUNT(*) FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.loan_id = 81892 GROUP BY Loans.budget;loan_db How many genders are there for the client who has a last name like « Lewis »?;"SELECT COUNT(gender) FROM Clients WHERE last_name LIKE ""Lewis""";loan_db What is the hour number before 2005 when the timestamp id is different than 85762?;SELECT hour_number FROM Time WHERE year < 2005 OR timestamp_id <> 85762;transactions_db "How many countries have a bank branch ID different than 97870 or a country_name like ""France""?";"SELECT COUNT(country_code) FROM Beneficiary WHERE bank_branch_id <> 97870 OR country_name LIKE ""France""";transactions_db What is the source of the deposit with a deposit_id different from 32998?;SELECT source FROM Deposits WHERE deposit_id <> 32998;loan_db What is the client_id of the counterparty bank branch in (27606, 23864)?;SELECT client_id FROM Source WHERE counterparty_bank_branch_id IN (27606, 23864);transactions_db What city, email has a first name that is different than Long and a year_of_birth larger than 1978?;SELECT city, email FROM Clients WHERE NOT first_name <> Long AND year_of_birth >= 1978;loan_db How many beneficiaries have a beneficiary id different than 36440 or a branch ID of 82335?;SELECT COUNT(country_code), beneficiary_id FROM Beneficiary WHERE beneficiary_id <> 36440 OR bank_branch_id = 82335;transactions_db How many deposits have a deposit_id of 32552?;SELECT COUNT(source) FROM Deposits WHERE deposit_id = 32552;loan_db What is the primary contract ID for the contract ID in (94525, 574)?;SELECT primary_contract_id FROM Source WHERE primary_contract_id IN (94525, 574);transactions_db "What is the period of the loan larger than 18 and the status of ""overdue""?";"SELECT * FROM Loans WHERE duration > 18 AND status = ""overdue""";loan_db What is the duration of the loan with a duration between 27 and 30?;SELECT duration, loan_id FROM Loans WHERE duration BETWEEN 27 AND 30;loan_db What is the client_id and primary contract_id in third-party donor_id (39736, 77209)?;SELECT client_id, primary_contract_id FROM Source WHERE counterparty_donor_id IN (39736, 77209);transactions_db What is the average year for a week number less than 4 or a day number less than 30?;SELECT AVG(year) FROM Time WHERE week_number < 4 OR day_number <= 30;transactions_db "What is the budget, status of loan on a client id of (46343, 42703) or a status of ""Awaiting""?";"SELECT budget, status FROM Loans WHERE client_id IN (46343, 42703) OR status = ""overdue""";loan_db What is the interest rate for loans with a budget bigger than 699280 or an interest larger than 22?;SELECT interest FROM Loans WHERE budget >= 699280 OR interest > 22;loan_db What is the hour number, day name of the episode with an hour number different than 13?;SELECT hour_number, day_name FROM Time WHERE hour_number <> 13;transactions_db What is the balance of the account with a balance between 851708 and 859513?;SELECT balance FROM Accounts WHERE balance BETWEEN 851708 AND 859513;loan_db What is the total number of loans with a client-id in (39934, 32248) and an interest larger than 13 group by budget?;SELECT COUNT(status), budget FROM Loans WHERE client_id IN (39934, 32248) AND interest > 13 GROUP BY budget;loan_db What is the hour number of the episode with a month number larger than 9 or year smaller than 2016?;SELECT hour_number FROM Time WHERE NOT month_number > 9 OR year <= 2016;transactions_db What is the unique character of the client in a city like Austin or an email that is different from ma?;"SELECT DISTINCT * FROM Clients WHERE city LIKE ""Austin"" OR email <> ""cox.johnson@cs.ma""";loan_db What is the client_id, counterparty_donor_id of the bank with a counterparty_donor_id of 86631 or counterparty_bank_branch_id of 54910?;SELECT client_id, counterparty_donor_id FROM Source WHERE counterparty_donor_id = 86631 OR counterparty_bank_branch_id = 54910;transactions_db What is the total number of client_ids when the client_id is different from 85912 and the counterparty_bank_branch_id is in the (5267, 79789) group by the counterparty bank_branch_id?;SELECT COUNT(client_id) FROM Source WHERE client_id <> 85912 AND counterparty_bank_branch_id IN (5267, 79789) GROUP BY counterparty_bank_branch_id;transactions_db What is the branch_id of the beneficiary different from 65134 with a branch_id?;SELECT bank_branch_id FROM Beneficiary WHERE beneficiary_id <> 65134;transactions_db What is the transaction_id, country_name and total amount of currency for the transaction between beneficiary with a client ID different from the group ID of 47673?;SELECT Transactions.transaction_id, Beneficiary.country_name, COUNT(Transactions.amount_currency) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE client_id <> 47673 GROUP BY transaction_id;transactions_db How many accounts have an account_id in (88962, 80917)?;SELECT COUNT(client_id), type FROM Accounts WHERE account_id IN (88962, 80917);loan_db What is the client_id, country_code and transaction amount of the beneficiary with a timestamp - ID different than 33997 and a primary contract - ID smaller than 43398 GROUP by amount_currency?;SELECT Transactions.client_id, Beneficiary.country_code, COUNT(Transactions.transaction_amount) FROM Transactions LEFT JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id <> 33997 AND primary_contract_id <> 43398 GROUP BY amount_currency;transactions_db What is the duration, gender and total number of loans in the internal join clients with a budget greater than 45733 or a loan_ ID in the group (30319, 42938)?;SELECT Loans.duration, Clients.gender, COUNT(Loans.budget) FROM Loans INNER JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.budget >= 45733 OR Loans.loan_id IN (30319, 42938) GROUP BY Loans.status;loan_db "What is the country code, beneficiary_id of the beneficiary with a bank branch ID of 34711 or a country name different from ""USA""?";"SELECT country_code, beneficiary_id FROM Beneficiary WHERE bank_branch_id = 34711 OR country_name <> ""USA""";transactions_db How many accounts left to join deposits on account_id account when typing in ('saving account', 'loan account', 'deposit account') or client_id of 29894 GROUP by client_id?;SELECT COUNT(*) FROM Accounts LEFT JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.type IN ('Saving account', 'Loan account', 'Deposit account') OR Accounts.client_id = 29894 GROUP BY Accounts.client_id;loan_db "What is the beneficiary_id of the beneficiary with a country code different than ""US"" and a bank branch ID smaller than 81051?";"SELECT beneficiary_id FROM Beneficiary WHERE country_code <> ""US"" AND bank_branch_id <> 81051";transactions_db How many loans have a client_id different than 81937 and an interest of 23?;SELECT COUNT(*) FROM Loans WHERE client_id <> 81937 OR interest = 23;loan_db What is the source of deposits with an amount less than 788229?;SELECT source FROM Deposits WHERE amount < 788229;loan_db "What is the name, budget, number of email addresses, gender of the client who left a loan with a last name different from the ""Ward"" group by first name?";"SELECT Clients.last_name, Loans.budget, COUNT(Clients.email), Clients.gender FROM Clients LEFT JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.last_name <> ""Ward"" GROUP BY Clients.first_name";loan_db "How many transactions have an is_fraudulent of ""yes"" or primary contract ID (86720, 75190)?";"SELECT COUNT(amount_currency), timestamp_id FROM Transactions WHERE is_fraudulent = ""Yes"" OR primary_contract_id IN (86720, 75190)";transactions_db "What is the interest rate for loans with a ""paid off"" status and less than 22 % interest?";"SELECT interest FROM Loans WHERE status = ""paid off"" AND interest < 22";loan_db What is the client_id, year of birth of the client with a client_id different from 73076?;SELECT client_id, year_of_birth FROM Clients WHERE client_id <> 73076;loan_db "What is the source of the deposit with account id 55550 and source like ""check""?";"SELECT source FROM Deposits WHERE account_id = 55550 AND source LIKE ""Check""";loan_db How many deposits have a deposit_id of 85220?;SELECT COUNT(deposit_id), account_id FROM Deposits WHERE deposit_id = 85220;loan_db What is the period of the loan between 5 and 14?;SELECT * FROM Loans WHERE duration BETWEEN 5 AND 14;loan_db What is the counterparty_donor_id of the bank with a primary contract id of (42124, 93848) or a counterparty bank branch id of 65698?;SELECT counterparty_donor_id FROM Source WHERE NOT(primary_contract_id IN (42124, 93848)) OR counterparty_bank_branch_id = 65698;transactions_db What is the transaction_amount, counterparty_donor_id, total number of product_family_code, is_fraudulent on the transaction left joining source on client_id of client_id, when timestamp_id is 94327 group by transaction_amount?;SELECT Transactions.transaction_amount, Source.counterparty_donor_id, COUNT(Transactions.product_family_code), Transactions.is_fraudulent FROM Transactions LEFT JOIN Source ON Transactions.client_id = Source.client_id WHERE timestamp_id = 94327 GROUP BY transaction_amount;transactions_db How many transactions have a product_family_code different than 81511 or a beneficiary_id in (3952, 3974)?;SELECT COUNT(primary_contract_id), transaction_id FROM Transactions WHERE NOT product_family_code <> 81511 OR beneficiary_id IN (3952, 3974);transactions_db What is the gender, city of the client in ('Orlando', 'Los Angeles')?;SELECT gender, city FROM Clients WHERE city IN ('Orlando', 'Los Angeles');loan_db What is the highest transaction amount for the 105841 product code 63980 or transaction_id in the (51484, 16051) group by transaction_id?;SELECT MAX(transaction_amount) FROM Transactions WHERE product_family_code = 63980 OR transaction_id IN (51484, 16051) GROUP BY transaction_id;transactions_db "What is the source, type, total number of account_ids, value when the source is different from ""transaction"" or the amount is less than 987430 by source?";"SELECT Deposits.source, Accounts.type, COUNT(Deposits.deposit_id), Deposits.amount FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source <> ""Transaction"" OR Deposits.amount <= 987430 GROUP BY Deposits.source";loan_db What is the client_id of the account that does not type like the savings account?;SELECT client_id FROM Accounts WHERE NOT type LIKE Saving account;loan_db What is the average year that has a day number bigger than 2 or a month number different from 5?;SELECT AVG(year) FROM Time WHERE day_number > 2 OR month_number <> 5;transactions_db What is the balance of the account with a client_id in (35689, 57884) or account_id in (98699, 98167)?;SELECT balance FROM Accounts WHERE client_id IN (35689, 57884) OR account_id IN (98699, 98167);loan_db How many transactions have a NO is_fraudulent is different from No?;SELECT COUNT(transaction_id), client_id FROM Transactions WHERE NOT is_fraudulent <> No;transactions_db "What city, name has a not(city in ('Phoenix', 'Dallas', 'Anchorage')) and a last name of ""Scott""?";"SELECT city, first_name FROM Clients WHERE NOT(city IN ('Phoenix', 'Dallas', 'Anchorage')) AND last_name = ""Scott""";loan_db What is the Account_ID, type of the account with an account_id different than 80986?;SELECT account_id, type FROM Accounts WHERE account_id <> 80986;loan_db "How many clients have an email of ""ma"" and a year of birth bigger than 1988?";"SELECT COUNT(*) FROM Clients WHERE email = ""ross.smith@cs.ma"" AND year_of_birth >= 1988";loan_db "How many towns are different from ""Albuquerque"" and the first name is > ""Rogers""?";"SELECT COUNT(city) FROM Clients WHERE city <> ""Albuquerque"" AND first_name <> ""Rogers""";loan_db How many primary contract ids, client ids in counterparty_donor ids (2561, 34075) or client ids in (58287, 91958)?;SELECT COUNT(primary_contract_id), client_id FROM Source WHERE counterparty_donor_id IN (2561, 34075) OR client_id IN (58287, 91958);transactions_db How many transactions have a timestamp id different than 97169?;SELECT COUNT(is_fraudulent), product_family_code FROM Transactions WHERE timestamp_id <> 97169;transactions_db What is the primary contract ID for the counterparty bank branch ID in (19349, 19523)?;SELECT primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (19349, 19523);transactions_db What is the unique country-code and bank branch - id of the beneficiary with a beneficiary - id in (89778, 1464) or a bank branch - id different from 64925?;SELECT DISTINCT country_code, bank_branch_id FROM Beneficiary WHERE beneficiary_id IN (89778, 1464) OR bank_branch_id <> 64925;transactions_db What is the client_id, client_id, number of transactions joining the source on primary_contract_id of primary_contract_id when the timestamp_id in (98004, 62456) has the product_family_code?;SELECT Transactions.client_id, Source.client_id, COUNT(Transactions.transaction_id), Transactions.is_fraudulent FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE timestamp_id IN (98004, 62456) GROUP BY product_family_code;transactions_db What is the status, first_name, total number of budgets, duration of the loan with a loan_ ID different than 70432 group by status?;SELECT Loans.status, Clients.first_name, COUNT(Loans.budget), Loans.duration FROM Loans JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.loan_id <> 70432 GROUP BY Loans.status;loan_db What is the budget, duration of loan on a not client id of 60310?;SELECT budget, duration FROM Loans WHERE NOT client_id = 60310;loan_db What is the timestamp_id, currency_device_branch_id and the total number of is_fraudulent transactions in the inner merge source for the client_id when the beneficiary_id is different than 72213 or the timestamp_id is 52053 GROUP by amount_currency?;SELECT Transactions.timestamp_id, Source.counterparty_bank_branch_id, COUNT(Transactions.is_fraudulent) FROM Transactions INNER JOIN Source ON Transactions.client_id = Source.client_id WHERE beneficiary_id <> 72213 OR timestamp_id = 52053 GROUP BY amount_currency;transactions_db What is the client_id, counterparty bank branch id of the bank with a primary contract id (94642, 99776) or a counterparty_donor id different from 26967?;SELECT client_id, counterparty_bank_branch_id FROM Source WHERE primary_contract_id IN (94642, 99776) OR counterparty_donor_id <> 26967;transactions_db What is the fraud amount of the transaction on a beneficiary id (107037, 86307) or a client id that is different than 98221?;SELECT is_fraudulent, transaction_amount FROM Transactions WHERE beneficiary_id IN (97037, 86307) OR client_id <> 98221;transactions_db What is the interest to finance the loan on a loan id of 88834 or on a client id in (93119, 99229)?;SELECT interest FROM Loans WHERE loan_id = 88834 OR client_id IN (93119, 99229);loan_db What is the primary contract id, counterparty-donor id of the entity with a primary contract ID of 99600?;SELECT primary_contract_id, counterparty_donor_id FROM Source WHERE primary_contract_id = 99600;transactions_db What is the timestamp_id of transactions with a value below 74913?;SELECT timestamp_id FROM Transactions WHERE transaction_amount < 74913;transactions_db "What is the gender of the client with a first-name different from ""Hall"" and a client - ID (96033, 59118)?";"SELECT gender FROM Clients WHERE first_name <> ""Hall"" AND client_id IN (96033, 59118)";loan_db "What is the country code, bank_branch_id of the beneficiary who has a country code different than ""DE"" and NOT(bank_branch_id IN (84692, 95057)?";"SELECT country_code, bank_branch_id FROM Beneficiary WHERE NOT(bank_branch_id IN (84692, 95057)) AND country_code <> ""DE""";transactions_db How many clients have a different year of birth than 1974?;SELECT COUNT(first_name), last_name FROM Clients WHERE year_of_birth <> 1974;loan_db What is the deposit_id, balance and total amount of deposits left on account_id of account id when deposit_id is different than 65972 or amount is greater than 988430 Group by deposit_id?;SELECT Deposits.deposit_id, Accounts.balance, COUNT(Deposits.amount) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id <> 65972 OR Deposits.amount >= 988430 GROUP BY Deposits.deposit_id;loan_db "What is the unique balance, account_id of accounts with a type like ""octroi""?";"SELECT DISTINCT COUNT(balance), account_id FROM Accounts WHERE type LIKE ""Loan account""";loan_db What is the product_family_code, timestamp_id of transactions with an amount currency like HKD or a transaction_amount larger than 99050?;"SELECT product_family_code, timestamp_id FROM Transactions WHERE amount_currency LIKE ""HKD"" OR transaction_amount > 99050";transactions_db What is the transaction_id of the beneficiary with a transaction value below 36716?;SELECT transaction_id FROM Transactions WHERE transaction_amount < 36716 OR beneficiary_id = 96320;transactions_db What year did the client from Miami's city of birth appear?;"SELECT year_of_birth FROM Clients WHERE city <> ""Miami""";loan_db How many countries are there for the beneficiary with a country code in ('US', 'DE', 'CA') and a bank branch ID of 10706?;SELECT COUNT(country_code) FROM Beneficiary WHERE country_code IN ('US', 'DE', 'CA') AND bank_branch_id = 10706;transactions_db What type of account has a client ID in (25904, 49222)?;SELECT type FROM Accounts WHERE client_id IN (25904, 49222);loan_db "What is the primary contract id for transactions with amount_currency of ""GBP""?";"SELECT primary_contract_id FROM Transactions WHERE amount_currency = ""GBP""";transactions_db What is the duration of the loan with a loan_id different from 35354?;SELECT duration, client_id FROM Loans WHERE loan_id <> 35354;loan_db What is balance, interest and total number of types of accounts which join loans on client_id of client_id when the balance is less than 864333 by balance?;SELECT Accounts.balance, Loans.interest, COUNT(Accounts.type) FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.balance <= 864333 GROUP BY Accounts.balance;loan_db What is the source, amount of deposits with a deposit id 97963 or a amount less than 733267?;SELECT source, amount FROM Deposits WHERE deposit_id = 97963 OR amount <= 733267;loan_db What is is_fraudulent, customer_id, number of beneficiary_id, product_family_code for the transaction left join source on primary contract_id of primary contract_id, when the client_id is 83641 and when amount_currency is group via transaction_id?;"SELECT Transactions.is_fraudulent, Source.client_id, COUNT(Transactions.beneficiary_id), Transactions.product_family_code FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE client_id = 83641 AND amount_currency = ""USD"" GROUP BY transaction_id";transactions_db "What is the transaction_id, country_name and the total number of is_fraudulent transactions in the inner join beneficiary with is_fraudulent is ""no"" and not with product_family code being 40632 group by transaction_id?";"SELECT Transactions.transaction_id, Beneficiary.country_name, COUNT(Transactions.timestamp_id), Transactions.is_fraudulent FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE is_fraudulent = ""No"" AND NOT product_family_code = 40632 GROUP BY transaction_id";transactions_db What is the sum of month number for the month number different than 6 and not the day number like Wednesday?;SELECT SUM(month_number) FROM Time WHERE month_number <> 6 AND NOT day_name LIKE Wednesday;transactions_db What is the name of the beneficiary with a bank branch id of 42273?;SELECT country_name FROM Beneficiary WHERE bank_branch_id = 42273;transactions_db What is the sum of balances for accounts with not( account_id in (61545, 65093))?;SELECT SUM(balance) FROM Accounts WHERE NOT(account_id IN (61545, 65093));loan_db How many loans have a not client ID of 99575 or interest between 13 and 24?;SELECT COUNT(*) FROM Loans WHERE NOT client_id = 99575 OR interest BETWEEN 13 AND 24;loan_db What is the loan_id, city, total(budget) for the loan with a budget between 492447 and 726369 or less than 9 groups by interest?;SELECT Loans.loan_id, Clients.city, COUNT(Loans.budget) FROM Loans JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.budget BETWEEN 492447 AND 726369 OR Loans.interest < 9 GROUP BY Loans.interest;loan_db What is the name of the email, year of birth of the client in Louis, in Philadelphia '', in Salt Lake City, or a year of birth larger than 1998?;SELECT email, year_of_birth FROM Clients WHERE city IN ('St. Louis', 'Philadelphia', 'Salt Lake City') OR year_of_birth >= 1998;loan_db "How many customers have a last name of ""Howard"" or an email address of ""ma""?";"SELECT COUNT(*) FROM Clients WHERE last_name = ""Howard"" OR email = ""davis.smith@cs.ma""";loan_db What is the source of the deposit with a deposit_id of 88164 or a amount larger than 918865?;SELECT source FROM Deposits WHERE deposit_id = 88164 OR amount >= 918865;loan_db What is the amount of currency, year and the total number of primary contract ids for transactions in the inner joint time with a time on timestamp_id of timestamp_id for the amount currency like “EUR” group by primary contract id?;"SELECT Transactions.amount_currency, Time.year, COUNT(Transactions.primary_contract_id) FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency LIKE ""EUR"" GROUP BY primary_contract_id";transactions_db What is the sum of the balances with a balance less than 919894?;SELECT SUM(balance) FROM Accounts WHERE balance < 919894;loan_db What is the primary contract id for transactions with a transaction id different than 75705 or a client id of 99090?;SELECT primary_contract_id FROM Transactions WHERE transaction_id <> 75705 OR client_id = 99090;transactions_db "What is the client_id of the account with a balance larger than 643926 or a type different than ""Bank loan account""?";"SELECT client_id FROM Accounts WHERE balance >= 643926 OR type <> ""Loan account""";loan_db What is the counterparty_donor_id, primary contract_id of the bank with a counterparty bank branch id of 33948?;SELECT counterparty_donor_id, primary_contract_id FROM Source WHERE counterparty_bank_branch_id = 33948;transactions_db What is the account_id of the account that is different than 92374?;SELECT * FROM Accounts WHERE account_id <> 92374;loan_db What is the primary contract id, the client id when the counterparty bank branch id is not (90978, 91642)) or the counterparty donor id 64129?;SELECT primary_contract_id, client_id FROM Source WHERE NOT(counterparty_bank_branch_id IN (90978, 91642)) OR counterparty_donor_id = 64129;transactions_db What is the total number of transactions with a beneficiary-id of 86642 or a client-id of 62038 or 76616)?;SELECT COUNT(product_family_code), transaction_amount FROM Transactions WHERE NOT(beneficiary_id IN (62038, 76616)) OR client_id = 86642;transactions_db How many loans have a not loan ID of 99824 or a budget between 179674 and 882824?;SELECT COUNT(client_id) FROM Loans WHERE NOT loan_id = 99824 OR budget BETWEEN 179674 AND 882824;loan_db What is the status, interest of loan that is not status like late payments?;SELECT status, interest FROM Loans WHERE NOT status LIKE overdue;loan_db What is the client_id and amount of currency of the transaction with product family code different from 35981?;SELECT client_id, amount_currency FROM Transactions WHERE product_family_code <> 35981;transactions_db What is the balance of the account with a savings account, deposit account, borrowing account or balance less than 633840?;SELECT balance FROM Accounts WHERE type IN ('Saving account', 'Deposit account', 'Loan account') OR balance < 633840;loan_db "What is the name, account_id and total number of first names of the client with a birth year larger than 1958 and a first name of the ""Morris"" Group by first name?";"SELECT Clients.city, Accounts.account_id, COUNT(Clients.first_name) FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.year_of_birth >= 1958 AND Clients.first_name = ""Morris"" GROUP BY Clients.first_name";loan_db What is the balance of the account with a client_id different from 87263?;SELECT balance FROM Accounts WHERE client_id <> 87263;loan_db What is the counterparty_bank branch ID of the bank with a client ID of 96961 or a counterparty_bank branch id of 75878?;SELECT counterparty_bank_branch_id FROM Source WHERE client_id = 96961 OR NOT counterparty_bank_branch_id = 75878;transactions_db How many different primary contract ids are there for the counterparty_donor id in (48334, 4160) or the primary contract id is different than 54558?;SELECT COUNT(primary_contract_id), counterparty_bank_branch_id FROM Source WHERE counterparty_donor_id IN (48334, 4160) OR primary_contract_id <> 54558;transactions_db What is is_fraudulent for transactions with a transaction value greater than 42046?;SELECT is_fraudulent FROM Transactions WHERE transaction_amount >= 42046;transactions_db What is the client_id of the bank with a counterparty bank branch id different than 41949 or primary contract_id in (90422, 97739)?;SELECT client_id FROM Source WHERE counterparty_bank_branch_id <> 41949 OR primary_contract_id IN (90422, 97739);transactions_db What is the transaction_amount and product_family_code when the currency value is ('EUR', 'CAD', 'AUD', 'USD', 'CNH', 'CHF', 'GBP') and the timestamp id is 15921?;SELECT transaction_amount, product_family_code FROM Transactions WHERE amount_currency IN ('EUR', 'CAD', 'AUD', 'HKD', 'USD', 'CNH', 'CHF', 'GBP') AND timestamp_id = 15921;transactions_db How many transactions have a transaction_id different than 34256?;SELECT COUNT(transaction_id) FROM Transactions WHERE transaction_id <> 34256;transactions_db "What is the product_family_code, transaction_id of the transaction with a client_id different than 4808 and amount_currency like ""GBP""?";"SELECT product_family_code, transaction_id FROM Transactions WHERE client_id <> 4808 AND amount_currency LIKE ""GBP""";transactions_db "How many deposits have a quantity smaller than 853299 and a source of ""check""?";"SELECT COUNT(account_id), source FROM Deposits WHERE amount < 853299 AND source = ""Check""";loan_db What is the total number of month and hour numbers for the time that has a number greater than 6?;SELECT COUNT(month_number), hour_number FROM Time WHERE NOT month_number >= 6;transactions_db "How many deposits have a ""transaction source"", and a deposit_id differs from 43395?";"SELECT COUNT(account_id), deposit_id FROM Deposits WHERE source = ""Transaction"" AND deposit_id <> 43395";loan_db "How many accounts have an account_id (98490, 97280) or a type like a ""deposit account""?";"SELECT COUNT(client_id) FROM Accounts WHERE account_id IN (98490, 97280) OR type LIKE ""Deposit account""";loan_db How many transactions have a transaction_id of 74101?;SELECT COUNT(client_id), timestamp_id FROM Transactions WHERE transaction_id = 74101;transactions_db What is the loan_id and duration of the loan with an interest below 19?;SELECT loan_id, duration FROM Loans WHERE interest <= 19;loan_db What is the lowest amount of deposit with an account ID in (14773, 61123) or deposit_ID in (91663, 19524)?;SELECT MIN(amount), account_id FROM Deposits WHERE account_id IN (14773, 61123) OR deposit_id IN (91663, 19524);loan_db What is the account_id of the deposit with a deposit_id different than 48510?;SELECT account_id FROM Deposits WHERE deposit_id <> 48510;loan_db "How many deposits have a source like ""check"" or a deposit_id different from 58018?";"SELECT COUNT(*) FROM Deposits WHERE source LIKE ""Check"" OR deposit_id <> 58018";loan_db What is the unique of the loan with an interest less than 10?;SELECT DISTINCT * FROM Loans WHERE interest <> 10;loan_db "What is the unique client-ID of the loan with a client-ID of 99728 or a status such as ""current""?";"SELECT DISTINCT client_id FROM Loans WHERE client_id = 99728 OR status LIKE ""current""";loan_db What is the account_id for the type of saving account with a value greater than 803847?;"SELECT account_id FROM Accounts WHERE type = ""Saving account"" OR balance >= 803847";loan_db "What is the highest month number for the day name that is different than ""Saturday"" or an hour number larger than 15?";"SELECT MAX(month_number) FROM Time WHERE day_name <> ""Saturday"" OR hour_number > 15";transactions_db How many cities have a female client or a year of birth less than 1964?;SELECT COUNT(city) FROM Clients WHERE NOT gender = Female OR year_of_birth < 1964;loan_db What is the counterparty_donor_id of the bank with a primary contract id of 56084 or a counterparty-bank branch id in (45639, 87957)?;SELECT counterparty_donor_id FROM Source WHERE primary_contract_id = 56084 OR counterparty_bank_branch_id IN (45639, 87957);transactions_db What is the Account_ID, balance of the account with a different type in ('Loan Account', 'Saving Account') or an account_id than 82031?;SELECT account_id, balance FROM Accounts WHERE type IN ('Loan account', 'Saving account') OR account_id <> 82031;loan_db "How many countries have a bank branch ID of (53562, 61758) and a country code of ""FR""?";"SELECT COUNT(country_code) FROM Beneficiary WHERE bank_branch_id IN (53562, 61758) AND country_code = ""FR""";transactions_db What is the source of the deposit amount less than 901375?;SELECT source, amount FROM Deposits WHERE amount < 901375;loan_db "What is the week number of the game with a day name like ""Wednesday"" or a day number bigger than 29?";"SELECT week_number FROM Time WHERE day_name LIKE ""Wednesday"" OR day_number > 29";transactions_db How many times was the month number less than 8?;SELECT COUNT(week_number), hour_number FROM Time WHERE month_number < 8;transactions_db How many clients have a client_id of 77173?;SELECT COUNT(*) FROM Clients WHERE client_id = 77173;loan_db "What is the amount, balance, and total number of deposit ids for the ""cash"" deposit group?";"SELECT Deposits.amount, Accounts.balance, COUNT(Deposits.source), Deposits.deposit_id FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source = ""Cash"" GROUP BY Deposits.deposit_id";loan_db What is the source of the deposit with an account ID different than 25550?;SELECT source FROM Deposits WHERE account_id <> 25550;loan_db "How many customers have a first name different than ""Martin"" or a last name smaller than ""Cox""?";"SELECT COUNT(first_name) FROM Clients WHERE first_name <> ""Martin"" OR last_name <> ""Cox""";loan_db "What is the timestamp_id, client_id of the transaction with an amount_currency different than ""HKD"" and a product_family_code smaller than 51374?";"SELECT timestamp_id, client_id FROM Transactions WHERE amount_currency <> ""HKD"" AND product_family_code <> 51374";transactions_db What is the name of the client in a town different from Las Vegas or the year of birth from 1962 to 2008?;"SELECT first_name, city FROM Clients WHERE city <> ""Las Vegas"" OR year_of_birth BETWEEN 1962 AND 2008";loan_db "What is the hour number of the episode on a year different than 2019 or a day name bigger than ""Monday""";"SELECT hour_number FROM Time WHERE year <> 2019 OR day_name <> ""Monday""";transactions_db "How many deposits have a source like ""check"" or an amount of 628863 group by deposit_id?";"SELECT COUNT(source), account_id FROM Deposits WHERE source LIKE ""Check"" OR amount = 628863 GROUP BY deposit_id";loan_db What is the earliest year, day number or hour number between 13 and 23?;SELECT MIN(year), day_number FROM Time WHERE year <= 2017 OR hour_number BETWEEN 13 AND 23;transactions_db What is the interest, first_name, total number of status, loan_id of the loan to join a group with a loan ID of 23833 or a duration of 26?;SELECT Loans.interest, Clients.first_name, COUNT(Loans.status), Loans.loan_id FROM Loans JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.loan_id = 23833 OR Loans.duration = 26 GROUP BY Loans.budget;loan_db "What is the country code of the beneficiary with a bank branch id of 10431 or a country code of ""BE""?";"SELECT country_code FROM Beneficiary WHERE bank_branch_id = 10431 OR country_code = ""BE""";transactions_db How many years of birth did the client have a client id (91197, 85586)?;SELECT COUNT(year_of_birth) FROM Clients WHERE client_id IN (91197, 85586);loan_db "What is the account_id, type of account with a type like a ""saving account"" and an account ID different than 94756?";"SELECT account_id, type FROM Accounts WHERE type LIKE ""Saving account"" AND account_id <> 94756";loan_db "How many deposits have an account_id of 27684 or a source like ""transaction""?";"SELECT COUNT(amount), source FROM Deposits WHERE account_id = 27684 OR source LIKE ""Transaction""";loan_db What is the lowest day number when the hour number is different than 16, and the day number is 31?;SELECT MIN(day_number) FROM Time WHERE hour_number <> 16 AND day_number = 31;transactions_db "How many years of birth did the client have an email that was different from ""Ma"" or a last name such as ""Thomas""?";"SELECT COUNT(year_of_birth) FROM Clients WHERE email <> ""james.williams@cs.ma"" OR last_name LIKE ""Thomas""";loan_db What is the transaction_id of the transaction with a transaction_id in (949, 44198 )?;SELECT transaction_id FROM Transactions WHERE transaction_id IN (949, 44198);transactions_db How many times is the counterparty_donor_id in (87739, 87000)?;SELECT COUNT(counterparty_bank_branch_id), counterparty_donor_id FROM Source WHERE counterparty_donor_id IN (87739, 87000);transactions_db What is the country code, bank branch ID of the beneficiary whose country code is not different from DE?;SELECT country_code, bank_branch_id FROM Beneficiary WHERE NOT country_code <> DE;transactions_db What is the account_id of the deposit with a deposit_id different than 9919 and a quantity smaller than 540280?;SELECT account_id FROM Deposits WHERE deposit_id <> 9919 AND amount <> 540280;loan_db How many loans have a loan_id of 53407?;SELECT COUNT(status) FROM Loans WHERE loan_id = 53407;loan_db What is the total number of weeks, days and months for the group with a timestamp - id greater than 10?;SELECT COUNT(week_number), day_number FROM Time WHERE month_number > 10 GROUP BY timestamp_id;transactions_db "How many customers have a town that is different than ""Baltimore"" or a last name > ""Murphy"" group by year of birth?";"SELECT COUNT(last_name), gender FROM Clients WHERE city <> ""Baltimore"" OR last_name <> ""Murphy"" GROUP BY year_of_birth";loan_db What year, month number has a month number smaller than 3 or a week number greater than 1?;SELECT year, month_number FROM Time WHERE NOT month_number <= 3 OR NOT week_number > 1;transactions_db "What is the name of the client with a gender of ""female"" in ""Louisville""?";"SELECT last_name, email FROM Clients WHERE gender = ""Female"" AND city = ""Louisville""";loan_db What is the status, budget of the loan with a duration between 20 and 29?;SELECT status, budget FROM Loans WHERE duration BETWEEN 20 AND 29;loan_db "What is the transaction amount, hour_number and beneficiary id of the transaction that has a time on the timestamp_id of the timestamp_id, when amount_currency is ""CAD"" or when primary_contract_id is different by amount_currency than 89522 Group?";"SELECT Transactions.transaction_amount, Time.hour_number, COUNT(Transactions.beneficiary_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency = ""CAD"" OR primary_contract_id <> 89522 GROUP BY amount_currency";transactions_db "What is the timestamp_id, client_id and transaction value of the transaction left that has a fraud amount of ""no"" or a transaction value between 33703 and 83215 by transaction_id?";"SELECT Transactions.timestamp_id, Source.client_id, COUNT(Transactions.transaction_amount) FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE is_fraudulent = ""No"" OR transaction_amount BETWEEN 33703 AND 83215 GROUP BY transaction_id";transactions_db What is is_fraudulent, country_code, number of primary contract ids for the transaction involving beneficiary on beneficiary_id of beneficiary_id when timestamp_id is 51588 group with client_id?;SELECT Transactions.is_fraudulent, Beneficiary.country_code, COUNT(Transactions.primary_contract_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id = 51588 GROUP BY client_id;transactions_db What year, month number has a month number smaller than 2?;SELECT year, month_number FROM Time WHERE month_number <= 2;transactions_db What is the client_id, country_code and total number of product family codes for the transaction in the inner joint beneficiary with a product family code in the (95653, 20805) product family code group?;SELECT Transactions.client_id, Beneficiary.country_code, COUNT(Transactions.product_family_code) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE product_family_code IN (95653, 20805) GROUP BY product_family_code;transactions_db What is the total number of timestamp_id, month_number when the month_number is not between 1 and 5 and the timestamp_id is 80970?;SELECT COUNT(timestamp_id), month_number FROM Time WHERE NOT month_number BETWEEN 1 AND 5 AND timestamp_id = 80970;transactions_db What is is_fraudulent when the transaction amount is less than 89579?;SELECT is_fraudulent FROM Transactions WHERE transaction_amount < 89579;transactions_db "How many customers have a client_id of client_id when the type is ""saving account"" group by type?";"SELECT COUNT(*) FROM Accounts RIGHT JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.type LIKE ""Saving account"" GROUP BY Accounts.type";loan_db How many deposits have a lesser amount than 985779?;SELECT COUNT(deposit_id), source FROM Deposits WHERE amount <= 985779;loan_db What is the beneficiary_id of the beneficiary with a country_name in ('Belgium', 'USA')?;SELECT beneficiary_id FROM Beneficiary WHERE country_name IN ('Belgium', 'USA');transactions_db "What is the beneficiary_id and bank branch_id of the beneficiary with a bank branch-id different than 78480 or a country name > ""France""";"SELECT beneficiary_id, bank_branch_id FROM Beneficiary WHERE bank_branch_id <> 78480 OR country_name <> ""France""";transactions_db How many beneficiaries have a beneficiary_id of 51518 or a bank_branch_id different than 73082?;SELECT COUNT(beneficiary_id) FROM Beneficiary WHERE beneficiary_id = 51518 OR bank_branch_id <> 73082;transactions_db What is the source, balance, and total number of deposit ids for the deposit id of the account ID when deposit id is in (70795, 54194) or when the amount is by the group not greater than 511913?;SELECT Deposits.source, Accounts.balance, COUNT(Deposits.amount), Deposits.deposit_id FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (70795, 54194) OR Deposits.amount <= 511913 GROUP BY Deposits.source;loan_db "What is the transaction_amount, month_number, total number of the transaction_id, product family code for the transactions in the inner-joint time with a ""yes"" is_fraudulent?";"SELECT Transactions.transaction_amount, Time.month_number, COUNT(Transactions.transaction_id), Transactions.product_family_code FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE is_fraudulent = ""Yes"" GROUP BY primary_contract_id";transactions_db What is the average year, hour number of the time with a timestamp_id of 85072?;SELECT AVG(year), hour_number FROM Time WHERE timestamp_id = 85072;transactions_db What is the client_id of the loan with a status different than « overdue » or less than 22 % interest rate?;"SELECT client_id FROM Loans WHERE status <> ""overdue"" OR interest < 22";loan_db "What is the transaction_id, primary contract_id and the total number of timestamps ids for the transaction in the source with a client_id of client_id when amount_currency is different by amount_currency from the group of ""HKD""?";"SELECT Transactions.transaction_id, Source.primary_contract_id, COUNT(Transactions.timestamp_id) FROM Transactions INNER JOIN Source ON Transactions.client_id = Source.client_id WHERE amount_currency <> ""HKD"" GROUP BY amount_currency";transactions_db What is the source of the account_id for the account in (36144, 43904)?;SELECT source, deposit_id FROM Deposits WHERE account_id IN (36144, 43904);loan_db How many loans have interest of 19 %?;SELECT COUNT(interest) FROM Loans WHERE interest = 19;loan_db What is the deposit_id of the player with a deposit_id different than 87437?;SELECT * FROM Deposits WHERE deposit_id <> 87437;loan_db What is the sum of the week number if the hour number is more than 19 group by month number?;SELECT SUM(week_number) FROM Time WHERE hour_number >= 19 GROUP BY month_number;transactions_db How many different types of contracts have a counterparty bank branch in (89653, 98172)?;SELECT COUNT(counterparty_donor_id), primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (89653, 98172);transactions_db What is the total number of timestamp id, month_number for the hour number between 18 and 24 or after 2001?;SELECT COUNT(timestamp_id), month_number FROM Time WHERE hour_number BETWEEN 18 AND 24 OR year > 2001;transactions_db What is the day number of the week number 7?;SELECT day_number, year FROM Time WHERE week_number = 7;transactions_db What is the client_id and account_id of the account with an account_id of 18558 and a balance of higher than 863577?;SELECT client_id, account_id FROM Accounts WHERE account_id = 18558 AND balance > 863577;loan_db "What is the name of the client with a last name different than ""Martinez""?";"SELECT last_name FROM Clients WHERE last_name <> ""Martinez""";loan_db How many times was the month number greater than 6?;SELECT COUNT(timestamp_id), day_number FROM Time WHERE month_number >= 6;transactions_db What is the unique date-number of the episode that has a day_name of Tuesday and an hour-number less than 4?;SELECT DISTINCT day_number FROM Time WHERE NOT day_name LIKE Tuesday AND hour_number <= 4;transactions_db What is the total number of counterparty_donor_ids when the not client_id is 80623 and when the counterparty-bank branch_id is different than 33806?;SELECT COUNT(counterparty_donor_id) FROM Source WHERE NOT client_id = 80623 AND counterparty_bank_branch_id <> 33806;transactions_db "What city, name has a year of birth between 1994 and 1998 and a last name like ""griffin""?";"SELECT city, first_name FROM Clients WHERE year_of_birth BETWEEN 1994 AND 1998 AND last_name LIKE ""Griffin""";loan_db How many transactions have a timestamp id (97475, 25286)?;SELECT COUNT(is_fraudulent) FROM Transactions WHERE timestamp_id IN (97475, 25286);transactions_db What is the counterparty_donor_id of the client with a client_id different than 70217 and a primary contract-id smaller than 46664?;SELECT counterparty_donor_id FROM Source WHERE client_id <> 70217 AND primary_contract_id <> 46664;transactions_db "What is the client_id of the client with an email of ""Melo"" or a gender of ""Male""?";"SELECT client_id FROM Clients WHERE email = ""evans.smith@cs.ma"" OR gender = ""Male""";loan_db What is the balance of the account with client id 50974?;SELECT balance FROM Accounts WHERE client_id = 50974;loan_db What is the counterparty bank branch id, primary contract id of the client id 36181 and the primary contract id different than 90907?;SELECT counterparty_bank_branch_id, primary_contract_id FROM Source WHERE client_id = 36181 AND primary_contract_id <> 90907;transactions_db "What is the unique number of deposits for ""transaction""?";"SELECT DISTINCT COUNT(*) FROM Deposits WHERE source = ""Transaction""";loan_db "What is the timestamp_id of the transaction with a beneficiary_id different from 82724 or amount_currency of ""USD""?";"SELECT timestamp_id FROM Transactions WHERE beneficiary_id <> 82724 OR amount_currency = ""USD""";transactions_db What is the name of the beneficiary with country name like Germany or a bank branch ID 58846?;"SELECT country_name, beneficiary_id FROM Beneficiary WHERE country_name LIKE ""Germany"" OR bank_branch_id = 58846";transactions_db "What is the source, client_id, total amount of deposits joining accounts with account_id of account_id when amount is different than 799269 or when source is a ""transaction"" by source group?";"SELECT Deposits.source, Accounts.client_id, COUNT(Deposits.amount) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount <> 799269 OR Deposits.source LIKE ""Transaction"" GROUP BY Deposits.source";loan_db How many counterparty bank branch ids have a primary contract id (30915, 96183)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE primary_contract_id IN (30915, 96183);transactions_db What is the week number, hour number of the episode with a timestamp_id of 98770?;SELECT week_number, hour_number FROM Time WHERE timestamp_id = 98770;transactions_db "How many transactions have an amount_currency like the group ""nzd"" by client_id?";"SELECT COUNT(primary_contract_id) FROM Transactions WHERE amount_currency LIKE ""NZD"" GROUP BY client_id";transactions_db "What is client when email is different than ""Ma"" or when year of birth is 1999?";"SELECT * FROM Clients WHERE email <> ""thomas.johnson@cs.ma"" OR year_of_birth = 1999";loan_db What is the highest balance for account_id (38849, 70127)?;SELECT MAX(balance) FROM Accounts WHERE account_id IN (38849, 70127);loan_db What is the transaction_id of the transaction with a transaction_id of 90472?;SELECT transaction_id FROM Transactions WHERE transaction_id = 90472;transactions_db How many loans have a client_id different than 33203 or a budget greater than 109568?;SELECT COUNT(duration) FROM Loans WHERE client_id <> 33203 OR budget >= 109568;loan_db What is the source of the deposit with an account ID in (18008, 74453) and deposit_ID 76414?;SELECT source FROM Deposits WHERE account_id IN (18008, 74453) AND deposit_id = 76414;loan_db What is the lowest balance, account_id for accounts with account_id of 19085?;SELECT MIN(balance), account_id FROM Accounts WHERE account_id = 19085;loan_db How many hours were there for the week on the number 6?;SELECT COUNT(hour_number) FROM Time WHERE week_number <= 6;transactions_db What is the total number of clients with a client_id different from 2134 in a city like Manchester?;"SELECT COUNT(client_id) FROM Clients WHERE client_id <> 2134 AND city LIKE ""Manchester""";loan_db "What is is_fraudulent for transactions where the amount is different from the value of ""CNH""?";"SELECT is_fraudulent FROM Transactions WHERE amount_currency <> ""CNH""";transactions_db What is the unique number of deposits for the sum of 868655?;SELECT DISTINCT COUNT(source) FROM Deposits WHERE amount = 868655;loan_db What is the primary contract id, day number and number ofbeneficiary ids for the transaction with a time on timestamp_id of timestamp_id when the primary contract id is 94052 and when product_family_code is 83309 group via client_id?;SELECT Transactions.primary_contract_id, Time.day_number, COUNT(Transactions.beneficiary_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE NOT primary_contract_id = 94052 AND product_family_code = 83309 GROUP BY client_id;transactions_db What is the client_id and primary contract_id in the counterparty bank branch (90573, 64639) and counterparty_donor_id in (73206, 42310)?;SELECT client_id, primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (90573, 64639) AND counterparty_donor_id IN (73206, 42310);transactions_db How many loans have a interest less than 3?;SELECT COUNT(status), interest FROM Loans WHERE interest <= 3;loan_db How many client_ids have a counterparty_donor_id of 63925 and a counterparty_bank branch ID of 59062?;SELECT COUNT(client_id) FROM Source WHERE counterparty_donor_id = 63925 AND counterparty_bank_branch_id = 59062;transactions_db What is the month number, hour number if the week number is different than 1 or when the hour number is less than 21?;SELECT month_number, hour_number FROM Time WHERE week_number <> 1 OR hour_number < 21;transactions_db How many deposits have a source ('check', 'transaction') or an account_id different than 56802?;SELECT COUNT(deposit_id) FROM Deposits WHERE source IN ('Check', 'Transaction') OR account_id <> 56802;loan_db What is balance, city and total number of types of accounts in the inner join of clients with an account_id of 23917 group by account-id?;SELECT Accounts.balance, Clients.city, COUNT(Accounts.type) FROM Accounts INNER JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.account_id = 23917 GROUP BY Accounts.account_id;loan_db What is the client_id, bank branch_id and the transaction_id of the beneficiary with a transaction amount of 9359 and a client_id different from 96704 GROUP from is_fraudulent?;SELECT Transactions.client_id, Beneficiary.bank_branch_id, COUNT(Transactions.transaction_id) FROM Transactions LEFT JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE transaction_amount = 9359 AND client_id <> 96704 GROUP BY is_fraudulent;transactions_db How many transactions have a primary contract ID in (80044, 85481) or a product_family code that is different from 80910?;SELECT COUNT(is_fraudulent) FROM Transactions WHERE primary_contract_id IN (80044, 85481) OR product_family_code <> 80910;transactions_db What is the balance of the account with a balance different than 897302?;SELECT balance, client_id FROM Accounts WHERE NOT balance <> 897302;loan_db "What is the unique account_ID, balance of the account with a ""deposit account"" type, or a client_id that is different than 92794?";"SELECT DISTINCT account_id, balance FROM Accounts WHERE type = ""Deposit account"" OR client_id <> 92794";loan_db "How many transactions have a is_fraudulent different than ""yes"" or a transaction id of 44380?";"SELECT COUNT(transaction_id), beneficiary_id FROM Transactions WHERE is_fraudulent <> ""Yes"" OR transaction_id = 44380";transactions_db What is the branch id of the counterparty bank, the donor id when the client id 32714 is;SELECT counterparty_bank_branch_id, counterparty_donor_id FROM Source WHERE client_id = 32714;transactions_db What is the name, status and year of birth of the client in a « Male » group?;"SELECT Clients.last_name, Loans.status, COUNT(Clients.year_of_birth) FROM Clients INNER JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.gender = ""Male"" GROUP BY Clients.email";loan_db What is the transaction amount, client_id and the total number of transaction ids for the transaction with a client_id of 67218 and a timestamp_id in (80551, 76666) group by transaction id?;SELECT Transactions.transaction_amount, Source.client_id, COUNT(Transactions.client_id) FROM Transactions RIGHT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE client_id = 67218 AND timestamp_id IN (80551, 76666) GROUP BY transaction_id;transactions_db What is the transaction_id, country_code and the number of timestamp_ids for the transaction joining a group of 69416 with the transaction timetamp id?;SELECT Transactions.transaction_id, Beneficiary.country_code, COUNT(Transactions.timestamp_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id = 69416 GROUP BY transaction_id;transactions_db What is the bank_branch_id of the beneficiary with a bank branch_id of 11295 or a beneficiary_id of 34498?;SELECT bank_branch_id FROM Beneficiary WHERE bank_branch_id = 11295 OR beneficiary_id = 34498;transactions_db What is the timestamp_id of the year when the day number is less than 23, and the hour number is more than 12?;SELECT timestamp_id, year FROM Time WHERE day_number < 23 AND NOT hour_number > 12;transactions_db What is the primary contract id, the transaction amount of the transaction with the transaction amount between 66484 and 98668?;SELECT primary_contract_id, transaction_amount FROM Transactions WHERE transaction_amount BETWEEN 66484 AND 98668;transactions_db What is the client_id of the account with account_id of 90641 and type in ('Loan account', 'Saving account')?;SELECT client_id FROM Accounts WHERE account_id = 90641 AND type IN ('Loan account', 'Saving account');loan_db How many customers had a year of birth smaller than 1958 and an email in (ma's, ma's)?;SELECT COUNT(*) FROM Clients WHERE year_of_birth <= 1958 AND email IN ('thomas.johnson@cs.ma', 'watson.smith@cs.ma');loan_db "What is the gender of the client with a gender of ""female"" in a city like portland ?";"SELECT gender FROM Clients WHERE gender = ""Female"" OR city LIKE ""Portland""";loan_db What is the client_id of the server with a client_id in (36251, 68540)?;SELECT client_id FROM Source WHERE client_id IN (36251, 68540);transactions_db What is the type of account with a balance less than 502447?;SELECT type, account_id FROM Accounts WHERE balance < 502447;loan_db What is the product_family_code for the transaction with a primary contract id of 98357 or a product_family code that is different than 97910?;SELECT product_family_code FROM Transactions WHERE primary_contract_id = 98357 OR product_family_code <> 97910;transactions_db How many loans have a loan_id (94377, 89501)?;SELECT COUNT(client_id) FROM Loans WHERE loan_id IN (94377, 89501);loan_db What is the unique number of accounts that join loans on client_id of client_id when the not type is loan account group by account ID?;SELECT DISTINCT COUNT(*) FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE NOT Accounts.type = Loan account GROUP BY Accounts.account_id;loan_db "What is the country code, bank branch ID of the beneficiary with a bank branch ID of 97689 or a country name of ""Belgium""?";"SELECT country_code, bank_branch_id FROM Beneficiary WHERE NOT bank_branch_id = 97689 OR country_name = ""Belgium""";transactions_db "How many deposits have a deposit_id of 67073 and a source as ""Check""?";"SELECT COUNT(source) FROM Deposits WHERE deposit_id = 67073 AND source LIKE ""Check""";loan_db What is the amount, balance, and total number of deposit account ids for the deposit accounts with account ids when the source is different from the group which is cash?;"SELECT Deposits.amount, Accounts.balance, COUNT(Deposits.source), Deposits.deposit_id FROM Deposits RIGHT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source <> ""Cash"" GROUP BY Deposits.source";loan_db What is the client_id and counterparty_donor_id of the bank with a client_id (99278, 49728) and not (counterparty bank branch id in (55070, 90858) )?;SELECT client_id, counterparty_donor_id FROM Source WHERE client_id IN (99278, 49728) AND NOT(counterparty_bank_branch_id IN (55070, 90858));transactions_db How many loans have a duration larger than two and a client_id in group (35626, 26652) by loan_id?;SELECT COUNT(client_id) FROM Loans WHERE duration >= 2 AND client_id IN (35626, 26652) GROUP BY loan_id;loan_db How many different types of contracts have a counterparty_donor_id in (56357, 81897) or not (client_id in (30046, 93110))?;SELECT COUNT(counterparty_donor_id), primary_contract_id FROM Source WHERE counterparty_donor_id IN (56357, 81897) OR NOT(client_id IN (30046, 93110));transactions_db What is the gender of the client with a client_id different from 49418?;SELECT gender FROM Clients WHERE client_id <> 49418;loan_db How many times is the counterparty_bank branch - id different than 88700?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_bank_branch_id <> 88700;transactions_db What city, gender is the client from (’ Boston ’, ’ Albuquerque ’, ’ Hartford )?;SELECT city, gender FROM Clients WHERE city IN ('Boston', 'Albuquerque', 'Hartford');loan_db "How many customers have a last name different than ""Stewart"" or a year of birth between 1994 and 2009?";"SELECT COUNT(first_name) FROM Clients WHERE last_name <> ""Stewart"" OR year_of_birth BETWEEN 1994 AND 2009";loan_db "What is the deposit_id of the deposit that has a source different than ""Cash"" or an account ID of 68193?";"SELECT deposit_id FROM Deposits WHERE source <> ""Cash"" OR account_id = 68193";loan_db What is the week number, timestamp id of the episode with a week number less than 2 or a year larger than 2017?;SELECT week_number, timestamp_id FROM Time WHERE week_number <= 2 OR year > 2017;transactions_db What is the deposit_id of 29090 and the source different than the transaction?;"SELECT * FROM Deposits WHERE deposit_id = 29090 AND source <> ""Transaction""";loan_db What is the transaction amount, amount of the transaction currency with a transaction number of 19507 and a beneficiary number in (96856, 26059)?;SELECT transaction_amount, amount_currency FROM Transactions WHERE transaction_id = 19507 AND beneficiary_id IN (96856, 26059);transactions_db "What is the bank_branch_id, beneficiary_id of the beneficiary with a bank branch - ID (95064, 88080) or a country code of ""FR""?";"SELECT bank_branch_id, beneficiary_id FROM Beneficiary WHERE bank_branch_id IN (95064, 88080) OR country_code = ""FR""";transactions_db "What is the deposit_id of the deposit with a source like ""Cash"" or more than 220961?";"SELECT deposit_id FROM Deposits WHERE source LIKE ""Cash"" OR amount > 220961";loan_db "What is is_fraudulent, bank branch id, total number of primary contract ids for transaction with beneficiary id of beneficiary id with amount currency of ""USD"" or product family id of 61668 group by primary contract ids?";"SELECT Transactions.is_fraudulent, Beneficiary.bank_branch_id, COUNT(Transactions.primary_contract_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency = ""USD"" OR product_family_code = 61668 GROUP BY primary_contract_id";transactions_db "What city, last name has a first name of ""Cox ""?";"SELECT city, last_name FROM Clients WHERE first_name = ""Cox""";loan_db What is the country code, bank branch ID of the beneficiary which has CA as the country code?;SELECT country_code, bank_branch_id FROM Beneficiary WHERE NOT country_code = CA;transactions_db "How many deposits have a deposit_id of (83394, 63369) and a source of ""check""?";"SELECT COUNT(*) FROM Deposits WHERE deposit_id IN (83394, 63369) AND source = ""Check""";loan_db What is the loan_id of the loan having a duration greater than 27?;SELECT * FROM Loans WHERE loan_id IN (1667, 91165) AND duration > 27;loan_db How many times is the counterparty_donor_id 93157?;SELECT COUNT(counterparty_bank_branch_id), client_id FROM Source WHERE NOT counterparty_donor_id = 93157;transactions_db What is the product_family_code, primary contract_id, number of beneficiary_id, transaction_id of the transaction with a product family code in (3312, 99314) group by timestamp_id?;SELECT Transactions.product_family_code, Source.primary_contract_id, COUNT(Transactions.beneficiary_id), Transactions.transaction_id FROM Transactions JOIN Source ON Transactions.client_id = Source.client_id WHERE product_family_code IN (3312, 99314) GROUP BY timestamp_id;transactions_db How many customers join accounts with a client_id of client_id when the group is not (first name in (Brooks', 'Bailey', 'Richardson')) by year_of_birth?;SELECT COUNT(*) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE NOT(Clients.first_name IN ('Brooks', 'Bailey', 'Richardson')) GROUP BY Clients.year_of_birth;loan_db "How many countries code ""france"" or ""ca""?";"SELECT COUNT(country_code), beneficiary_id FROM Beneficiary WHERE country_name = ""France"" OR country_code = ""CA""";transactions_db What is the loan_id of the loan with an interest greater than 22?;SELECT * FROM Loans WHERE loan_id IN (72587, 90677) AND NOT interest <= 22;loan_db What is the loan_id, balance, total(budget), status of the loan left with a client_id of the client_id when the status is like 'current' group by interest?;"SELECT Loans.loan_id, Accounts.balance, COUNT(Loans.budget), Loans.status FROM Loans LEFT JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.status LIKE ""current"" GROUP BY Loans.interest";loan_db How many countries are there for the beneficiary?;SELECT COUNT(country_code) FROM Beneficiary WHERE country_code IN ('US', 'CA', 'UK', 'BE', 'DE');transactions_db "How many genders are there for the client in ""Baltimore""?";"SELECT COUNT(city), gender FROM Clients WHERE city = ""Baltimore""";loan_db What is the primary contract id, the primary contract id, and the total number of transaction ids for the transaction in the source with a primary contract id of 90608 Group by transaction id?;SELECT Transactions.primary_contract_id, Source.primary_contract_id, COUNT(Transactions.transaction_id) FROM Transactions INNER JOIN Source ON Transactions.client_id = Source.client_id WHERE primary_contract_id = 90608 GROUP BY transaction_id;transactions_db What is the month number of the player with a month number greater than 10?;SELECT month_number FROM Time WHERE month_number > 10;transactions_db What is the status of the loan with a duration between 21 and 23?;SELECT status, client_id FROM Loans WHERE duration BETWEEN 21 AND 23;loan_db How many types of accounts have an account ID different than 59875?;SELECT COUNT(type) FROM Accounts WHERE account_id <> 59875;loan_db "What is the transaction amount, hour_count, total number of client_id, product_family_code left for the transaction that has a time on timestamp_id of timestamp_id when is_fraudulent is different from the group of ""yes""'s id";"SELECT Transactions.transaction_amount, Time.hour_number, COUNT(Transactions.client_id), Transactions.product_family_code FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE is_fraudulent <> ""Yes"" GROUP BY client_id";transactions_db How many times was the week number less than 4?;SELECT COUNT(timestamp_id), year FROM Time WHERE NOT week_number < 4;transactions_db How many times is the counterparty branch ID 96078 and the primary contract ID 34561?;SELECT COUNT(counterparty_bank_branch_id), primary_contract_id FROM Source WHERE counterparty_bank_branch_id = 96078 AND primary_contract_id = 34561;transactions_db How many bank branch ids are there for the beneficiary with a bank branch ID of 99459 or a beneficiary id of 85720 group by beneficiary_id?;SELECT COUNT(bank_branch_id) FROM Beneficiary WHERE bank_branch_id = 99459 OR beneficiary_id = 85720 GROUP BY beneficiary_id;transactions_db How many countries have a beneficiary id (67121, 92242)?;SELECT COUNT(country_name), country_code FROM Beneficiary WHERE beneficiary_id IN (67121, 92242);transactions_db What is the counterparty_donor_id, client_id of the player whose counterparty_donor_id is different than 86463?;SELECT counterparty_donor_id, client_id FROM Source WHERE counterparty_donor_id <> 86463;transactions_db How many timestamp_IDs are there for the year when timestamp_id is different from 81015?;SELECT COUNT(timestamp_id), year FROM Time WHERE timestamp_id <> 81015;transactions_db How many primary contract ids have a counterparty branch ID of 95301?;SELECT COUNT(primary_contract_id) FROM Source WHERE counterparty_bank_branch_id = 95301;transactions_db What is the source, type, total number of account_ids, the amount of account_id with a deposit_id that is different by amount from 86134 group?;SELECT Deposits.source, Accounts.type, COUNT(Deposits.deposit_id), Deposits.amount FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id <> 86134 GROUP BY Deposits.amount;loan_db What is the name, client_id of the client with a first name in ( Moon , Cooper ')?;SELECT first_name, client_id FROM Clients WHERE first_name IN ('Moore', 'Cooper');loan_db How many loans have a budget of less than 961143?;SELECT COUNT(loan_id) FROM Loans WHERE budget < 961143;loan_db "What is the total number of accounts with a client-id of ""deposit account"" 15837, 16402?";"SELECT COUNT(client_id), account_id FROM Accounts WHERE client_id IN (15837, 16402) AND type = ""Deposit account""";loan_db "How many accounts have a client_id different than 89921 or a type of ""saving account""?";"SELECT COUNT(client_id), account_id FROM Accounts WHERE client_id <> 89921 OR type = ""Saving account""";loan_db What is is_fraudulent, counterparty_donor_id, total number of product-family-codes for the transaction that has a timestamp_id different than 25997 Group by transaction_id?;SELECT Transactions.is_fraudulent, Source.counterparty_donor_id, COUNT(Transactions.product_family_code) FROM Transactions LEFT JOIN Source ON Transactions.client_id = Source.client_id WHERE timestamp_id <> 25997 GROUP BY transaction_id;transactions_db How many times is the counterparty_bank branch - id different than 18265?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE NOT counterparty_bank_branch_id <> 18265;transactions_db What is the product_family_code, counterparty_donor_id, total number of transactions joining the source on client_id of the client_id, when transaction_id is 16370 and when timestamp_id is different from the group of 98637 by transaction_id?;SELECT Transactions.product_family_code, Source.counterparty_donor_id, COUNT(Transactions.timestamp_id), Transactions.transaction_amount FROM Transactions JOIN Source ON Transactions.client_id = Source.client_id WHERE transaction_id = 16370 AND timestamp_id <> 98637 GROUP BY transaction_id;transactions_db "What is the timestamp_id, country_name and total number of transactions in the inner-joint beneficiary with amount_currency like ""nzd"" or transaction amount of the group 80315 by transaction amount?";"SELECT Transactions.timestamp_id, Beneficiary.country_name, COUNT(Transactions.transaction_amount) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency LIKE ""NZD"" OR transaction_amount = 80315 GROUP BY transaction_amount";transactions_db What is the name of the client with an email (ma's, ma's)?;SELECT first_name FROM Clients WHERE email IN ('white.smith@cs.ma', 'white.smith@cs.ma');loan_db What is the timestamp_id of the time with a month value different than 7 and a week number bigger than 7?;SELECT timestamp_id FROM Time WHERE month_number <> 7 AND week_number > 7;transactions_db How many transactions have not(timestamp_id in (81113, 83029))?;SELECT COUNT(amount_currency) FROM Transactions WHERE NOT(timestamp_id IN (81113, 83029));transactions_db "How many customers have a first name that is different than ""wood""?";"SELECT COUNT(client_id) FROM Clients WHERE first_name <> ""Wood""";loan_db "What is the deposit_id, amount of the deposit with a source different than ""transaction"" or less than 489029?";"SELECT deposit_id, amount FROM Deposits WHERE source <> ""Transaction"" OR amount < 489029";loan_db What is the amount of deposits with an amount greater than 691914?;SELECT amount FROM Deposits WHERE amount >= 691914;loan_db What is the duration, type, and total interest rate for the loan with interest between 20 and 23 group by duration?;SELECT Loans.duration, Accounts.type, COUNT(Loans.budget), Loans.interest FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.interest BETWEEN 20 AND 23 GROUP BY Loans.duration;loan_db What is the total number of client_id, counterparty_donor_id when primary_contract_id is 82240 and counterparty bank branch_id is (83212, 90036)?;SELECT COUNT(client_id), counterparty_donor_id FROM Source WHERE primary_contract_id = 82240 AND counterparty_bank_branch_id IN (83212, 90036);transactions_db What is the unique Primary contract id, client id, when the Primary contract id is different than 72871 or the counterparty_donor id is 68568?;SELECT DISTINCT primary_contract_id, client_id FROM Source WHERE primary_contract_id <> 72871 OR counterparty_donor_id = 68568;transactions_db What is the product_family_code, the country_code, the total number of transactions between a beneficiary with a timestamp_id different than 95178 or a client-id small than 98259 by the transaction_amount?;SELECT Transactions.product_family_code, Beneficiary.country_code, COUNT(Transactions.amount_currency), Transactions.transaction_id FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id <> 95178 OR client_id <> 98259 GROUP BY transaction_amount;transactions_db What is the timestamp_id, day_number of the time before 2019 or a week plus 4?;SELECT timestamp_id, day_number FROM Time WHERE year < 2019 OR week_number > 4;transactions_db What is the duration, budget of loan on a budget larger than 200030?;SELECT duration, budget FROM Loans WHERE budget > 200030;loan_db "How many customers have a first name different than ""James"" or a year of birth smaller than 1956?";"SELECT COUNT(*) FROM Clients WHERE first_name <> ""James"" OR year_of_birth <> 1956";loan_db "What is the timestamp_id, counterparty_donor_id and the total number of client ids for a transaction that has a primary contract id of the primary contract id when the transaction_amount is greater than 95804, or when the amount_currency is like the group ""cnh"" based on transaction_id?";"SELECT Transactions.timestamp_id, Source.counterparty_donor_id, COUNT(Transactions.client_id) FROM Transactions RIGHT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_amount > 95804 OR amount_currency LIKE ""CNH"" GROUP BY transaction_id";transactions_db How many days have a month number smaller than 12?;SELECT COUNT(day_name) FROM Time WHERE month_number < 12;transactions_db What is the source, balance and total deposit_id of deposit_id in the group (5707, 34807) by amount?;SELECT Deposits.source, Accounts.balance, COUNT(Deposits.deposit_id) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (5707, 34807) GROUP BY Deposits.amount;loan_db What is the country code of the beneficiary with a beneficiary id different than 4560?;SELECT country_code FROM Beneficiary WHERE beneficiary_id <> 4560;transactions_db How many beneficiaries have a country code (’LU’, ’DE’, BE’, ’FR’, ’ UK’, 'US’, 'CA’)?;SELECT COUNT(beneficiary_id) FROM Beneficiary WHERE country_code IN ('LU', 'DE', 'BE', 'FR', 'UK', 'US', 'CA');transactions_db What is the total number of accounts with a balance different than 468121 or a client_id in (83240, 89595)?;SELECT COUNT(client_id), type FROM Accounts WHERE balance <> 468121 OR client_id IN (83240, 89595);loan_db What is is_fraudulent, country_code, number of timestamp_id for the transactions left jointing beneficiary on beneficiary_id of beneficiary_id when client_id is in Group (45680, 41721) by timestamp_id?;SELECT Transactions.is_fraudulent, Beneficiary.country_code, COUNT(Transactions.timestamp_id) FROM Transactions LEFT JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE client_id IN (45680, 41721) GROUP BY timestamp_id;transactions_db What is the product_family_code for the transaction with a primary contract id of 94295 and a client id of 95934?;SELECT product_family_code FROM Transactions WHERE primary_contract_id = 94295 AND client_id = 95934;transactions_db What is the beneficiary_id, day_number, and total amount of is_fraudulent transactions left that form the time on timestamp_id of timestamp_id when the client_id is different from the 83378 GROUP by primary contract id?;SELECT Transactions.beneficiary_id, Time.day_number, COUNT(Transactions.amount_currency), Transactions.is_fraudulent FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE client_id <> 83378 GROUP BY primary_contract_id;transactions_db "How many loans have a status like a ""paid off"" group by interest?";"SELECT COUNT(budget), loan_id FROM Loans WHERE status LIKE ""paid off"" GROUP BY interest";loan_db What is the total number of primary contract ID, counterparty_donor id, when counterparty bank branch id is 92828 and when client id is (7525, 53208)?;SELECT COUNT(primary_contract_id), counterparty_donor_id FROM Source WHERE counterparty_bank_branch_id = 92828 AND client_id IN (7525, 53208);transactions_db What is the primary contract id, counterparty_bank_branch_id when the client id is 67457 or the counterparty bank branch id is different than 39751?;SELECT primary_contract_id, counterparty_bank_branch_id FROM Source WHERE client_id = 67457 OR counterparty_bank_branch_id <> 39751;transactions_db What is the average day number of the year between 2021 and 2023 with a month number less than 8?;SELECT AVG(day_number) FROM Time WHERE month_number <= 8 AND year BETWEEN 2021 AND 2023;transactions_db What is the bank_branch_id, country code of the beneficiary with a bank branch-id of 67922?;SELECT bank_branch_id, country_code FROM Beneficiary WHERE bank_branch_id = 67922;transactions_db How many customers had a year of birth before 1970?;SELECT COUNT(year_of_birth), first_name FROM Clients WHERE year_of_birth < 1970;loan_db What is the country code, bank branch ID of the beneficiary with a bank branch ID (95221, 98926)?;SELECT country_code, bank_branch_id FROM Beneficiary WHERE bank_branch_id IN (95221, 98926);transactions_db What is is_fraudulent, customer_id, number of beneficiary_ids, transaction amount of transaction with transaction_id (26647, 23116) and transaction amount between 65727 and 89510 group by client_id?;SELECT Transactions.is_fraudulent, Source.client_id, COUNT(Transactions.beneficiary_id), Transactions.transaction_amount FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_id IN (26647, 23116) AND transaction_amount BETWEEN 65727 AND 89510 GROUP BY client_id;transactions_db What is the country code, country name of the beneficiary with a bank branch id (52016, 90506)?;SELECT country_code, country_name FROM Beneficiary WHERE bank_branch_id IN (52016, 90506);transactions_db "How many emails were sent to clients who were born in 1974 and ""female""?";"SELECT COUNT(last_name), email FROM Clients WHERE gender LIKE ""Female"" AND year_of_birth = 1974";loan_db What is the timestamp_id of the transaction with a primary contract_id different than 21200 or a timestamp_id of 98189?;SELECT timestamp_id FROM Transactions WHERE primary_contract_id <> 21200 OR timestamp_id = 98189;transactions_db "What is the unique number of bank branch ID, beneficiary id of the beneficiary with a country code of ""FR"" or a country-name in ('Canada', 'France', 'Luxembourg')?";"SELECT DISTINCT COUNT(bank_branch_id), beneficiary_id FROM Beneficiary WHERE country_code = ""FR"" OR country_name IN ('Canada', 'France', 'Luxembourg')";transactions_db What is the year of birth, type, number of clients who join accounts on the client_id of the client_id when the year of birth is less than 1980 group by city;SELECT Clients.year_of_birth, Accounts.type, COUNT(Clients.last_name) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.year_of_birth < 1980 GROUP BY Clients.city;loan_db What is the total number of primary contract ID, client ID when counterparty bank branch ID 90999 is and client ID (83039, 89458) is?;SELECT COUNT(primary_contract_id), client_id FROM Source WHERE counterparty_bank_branch_id = 90999 AND client_id IN (83039, 89458);transactions_db What is the sum of month number for the day name Sunday and month number below 6?;SELECT SUM(month_number) FROM Time WHERE NOT day_name LIKE Sunday AND month_number < 6;transactions_db What is the counterparty_donor_id of the player with a counterparty_donor_id of 71260?;SELECT counterparty_donor_id FROM Source WHERE counterparty_donor_id = 71260;transactions_db How many deposits have an account_id in (84612, 47025)?;SELECT COUNT(source), deposit_id FROM Deposits WHERE account_id IN (84612, 47025);loan_db What is the total number of accounts with a client-id in (34990, 88711) and a balance that is different than 991739?;SELECT COUNT(client_id) FROM Accounts WHERE client_id IN (34990, 88711) AND balance <> 991739;loan_db What is the client_id account number in (89410, 92767)?;SELECT * FROM Accounts WHERE client_id IN (89410, 92767);loan_db What is the total number of balances on accounts with a client ID in (99813, 96784) and an account ID in (21938, 66910)?;SELECT COUNT(client_id), balance FROM Accounts WHERE client_id IN (99813, 96784) AND account_id IN (21938, 66910);loan_db What is the client identification number for 84377?;SELECT * FROM Loans WHERE client_id = 84377;loan_db What is the client_id and primary contract_id of the contract with a counterparty-donor-id other than 7226?;SELECT client_id, primary_contract_id FROM Source WHERE counterparty_donor_id <> 7226;transactions_db How many countries are named Canada and have country code different from the group by bank_branch_id?;"SELECT COUNT(country_code), country_name FROM Beneficiary WHERE country_name LIKE ""Canada"" AND NOT country_code <> BE GROUP BY bank_branch_id";transactions_db How many accounts have a type ('deposit account','saving account') or a client ID of 47788?;SELECT COUNT(*) FROM Accounts WHERE type IN ('Deposit account', 'Saving account') OR client_id = 47788;loan_db "What is the amount, type and total deposit_id of deposit with deposit_id of 99595 and a source of ""Cash"" Group by source?";"SELECT Deposits.amount, Accounts.type, COUNT(Deposits.deposit_id) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id = 99595 AND Deposits.source = ""Cash"" GROUP BY Deposits.source";loan_db What is the client's last name on a client id other than 62729 and an email in (ma', ma')?;SELECT last_name FROM Clients WHERE client_id <> 62729 AND email IN ('adams.johnson@cs.ma', 'scott.williams@cs.ma');loan_db "What is the unique transaction amount, bank branch id and product family code for the transaction between a not(client ID in (49937, 57669)) and is_fraudulent other than the ""yes"" group by the client ID?";"SELECT DISTINCT Transactions.transaction_amount, Beneficiary.bank_branch_id, COUNT(Transactions.product_family_code) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE NOT(client_id IN (49937, 57669)) AND is_fraudulent <> ""Yes"" GROUP BY client_id";transactions_db What is the total number of deposits joining accounts with an account id different than 27179 and an amount between 900632 and 949032 by deposit id group?;SELECT COUNT(*) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id <> 27179 AND Deposits.amount BETWEEN 900632 AND 949032 GROUP BY Deposits.deposit_id;loan_db What is the total number of clients with a balance bigger than 329401 or a client - id of 38167?;SELECT COUNT(client_id) FROM Accounts WHERE balance >= 329401 OR client_id = 38167;loan_db "What is the status, email and total number of loans left if clients are joining a client_id of a client_id when the status is different by loan_id than ""overdue"" group?";"SELECT Loans.status, Clients.email, COUNT(Loans.duration) FROM Loans LEFT JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.status <> ""overdue"" GROUP BY Loans.loan_id";loan_db How many loans were not paid off?;SELECT COUNT(interest), duration FROM Loans WHERE NOT status LIKE paid off;loan_db What is the interest, duration of loan on a loan id of 70239 or an interest that is different than 16?;SELECT interest, duration FROM Loans WHERE loan_id = 70239 OR interest <> 16;loan_db "What is the branch bank id of the beneficiary with a country name different than ""England"" or a country code in ('FR', 'LU')";"SELECT bank_branch_id FROM Beneficiary WHERE country_name <> ""England"" OR country_code IN ('FR', 'LU')";transactions_db What is the total number of transactions with a transaction_id of 20845 and a beneficiary_id of 93775?;SELECT COUNT(timestamp_id) FROM Transactions WHERE transaction_id = 20845 AND beneficiary_id = 93775;transactions_db How many deposit_ids have an amount larger than 869555 or a deposit_id that is not located (66844, 69009)?;SELECT COUNT(deposit_id) FROM Deposits WHERE amount >= 869555 OR NOT(deposit_id IN (66844, 69009));loan_db What is the client_id, hour_number, total number of the product_family_code, beneficiary_id of the transaction that has a time on timestamp_id of timestamp_id when the product_family_code is (91309, 98898) or when the transaction amount is between 31343 and 52954 based on amount_currency?;SELECT Transactions.client_id, Time.hour_number, COUNT(Transactions.product_family_code), Transactions.beneficiary_id FROM Transactions RIGHT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code IN (91309, 98898) OR transaction_amount BETWEEN 31343 AND 52954 GROUP BY amount_currency;transactions_db What is the transaction_id and transaction_amount when the primary contract value is different from 27688?;SELECT transaction_id, transaction_amount FROM Transactions WHERE NOT primary_contract_id <> 27688;transactions_db "What city has a first name ('Alexander', 'Turner') or a last name that is different than ""Allen""?";"SELECT city FROM Clients WHERE first_name IN ('Alexander', 'Turner') OR last_name <> ""Allen""";loan_db What is the client_id of the account with an account in (48945, 30490) and a balance under 272310?;SELECT client_id FROM Accounts WHERE account_id IN (48945, 30490) AND balance < 272310;loan_db What is the timestamp_id, country_code, total number of primary contract_id, product family code for the beneficiary with a product family code which is different than 95580 or a client_id of 92265 GROUP by amount_currency?;SELECT Transactions.timestamp_id, Beneficiary.country_code, COUNT(Transactions.primary_contract_id), Transactions.product_family_code FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE product_family_code <> 95580 OR client_id = 92265 GROUP BY amount_currency;transactions_db How many times was the counterparty donor ID (98423, 98992)?)?;SELECT COUNT(counterparty_donor_id), primary_contract_id FROM Source WHERE NOT(counterparty_donor_id IN (98423, 98992));transactions_db "What is the day_name of the game with a day number between 4 and 14 or a day name like ""Sunday""?";"SELECT day_name FROM Time WHERE day_number BETWEEN 4 AND 14 OR day_name LIKE ""Sunday""";transactions_db "What is the unique number of the beneficiary ID for the beneficiary with a beneficiary ID in (83996, 92208) or country code like ""FR""?";"SELECT DISTINCT COUNT(beneficiary_id) FROM Beneficiary WHERE beneficiary_id IN (83996, 92208) OR country_code LIKE ""FR""";transactions_db How many transactions have an amount_currency ('nzd', 'afr')?;SELECT COUNT(client_id) FROM Transactions WHERE amount_currency IN ('NZD', 'AUD');transactions_db How many beneficiaries have a beneficiary_id different than 40641?;SELECT COUNT(beneficiary_id) FROM Beneficiary WHERE NOT beneficiary_id <> 40641;transactions_db What is the unique gender, age and country of birth, first name of the client in ('female','male') and a year of birth larger in 2007 by city group?;SELECT DISTINCT Clients.gender, Accounts.balance, COUNT(Clients.year_of_birth), Clients.first_name FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.gender IN ('Female', 'Male') AND Clients.year_of_birth >= 2007 GROUP BY Clients.city;loan_db What is the greatest(budget) duration of the loan with a borrowed value of (81999, 79532) and a rate less than 19?;SELECT MAX(budget), duration FROM Loans WHERE loan_id IN (81999, 79532) AND interest <= 19;loan_db "What type of accounts has a type different than ""deposit account"" and a client - id smaller than 42864?";"SELECT type FROM Accounts WHERE type <> ""Deposit account"" AND client_id <> 42864";loan_db What is the loan_id and the client_id of the loan with an interest less than 25?;SELECT loan_id, client_id FROM Loans WHERE interest <> 25;loan_db "What is the client_id, source, total number of types with deposits associated on account_id of the account ID for the group of ""Loan Account"" by client_id?";"SELECT Accounts.client_id, Deposits.source, COUNT(Accounts.type) FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.type LIKE ""Loan account"" GROUP BY Accounts.client_id";loan_db How many banks have a different country code than CA?;SELECT COUNT(bank_branch_id), country_name FROM Beneficiary WHERE NOT country_code <> CA;transactions_db "What is the transaction_id, country name, number (is_fraudulent), client_id of the transaction joining recipient with is_fraudulent group as ""yes""";"SELECT Transactions.transaction_id, Beneficiary.country_name, COUNT(Transactions.is_fraudulent), Transactions.client_id FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE is_fraudulent = ""Yes"" GROUP BY amount_currency";transactions_db How many loans have a budget of 999501?;SELECT COUNT(client_id) FROM Loans WHERE budget = 999501;loan_db How many clients have gender that is different than female and have a client_id (64155, 75411)?;"SELECT COUNT(*) FROM Clients WHERE gender <> ""Female"" AND client_id IN (64155, 75411)";loan_db What is the client_id and primary contract_id in the counterparty bank branch id (82392, 98793)?;SELECT client_id, primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (82392, 98793);transactions_db What is the primary contract id, the client id when the counterparty bank branch id is different than 96112 or the client id is in (42404, 95197)?;SELECT primary_contract_id, client_id FROM Source WHERE counterparty_bank_branch_id <> 96112 OR client_id IN (42404, 95197);transactions_db What is the interest rate for loans with a budget of 653274 and a duration of less than 11?;SELECT interest FROM Loans WHERE budget = 653274 AND duration <= 11;loan_db What is the total deposit_ID amount for the account with account number 83553 and a deposit_id different than 98272?;SELECT COUNT(deposit_id), amount FROM Deposits WHERE account_id = 83553 AND deposit_id <> 98272;loan_db "What is the budget for the loan with a loan_id of 81429 or a status like ""paid off""?";"SELECT budget FROM Loans WHERE loan_id = 81429 OR status LIKE ""paid off""";loan_db What is the lowest balance of accounts with a balance bigger than 848845 or account_id in (62393, 66084)?;SELECT MIN(balance) FROM Accounts WHERE balance > 848845 OR account_id IN (62393, 66084);loan_db What is the total number of deposits left on accounts with an amount smaller than 859411 and a source in the group ('Cash', 'Transaction', 'Check') by amount?;SELECT COUNT(*) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE NOT Deposits.amount >= 859411 AND Deposits.source IN ('Cash', 'Transaction', 'Check') GROUP BY Deposits.amount;loan_db What is the unique duration of the loan on a budget smaller than 285630?;SELECT DISTINCT duration FROM Loans WHERE budget < 285630;loan_db What is the counterparty_donor_id, client_id when the counterparty_donor_id is 9427 or the client_id is different than 98504?;SELECT counterparty_donor_id, client_id FROM Source WHERE counterparty_donor_id = 9427 OR client_id <> 98504;transactions_db What is the country code, bank branch ID of the beneficiary with a bank branch ID of 37687 and a beneficiary_id that is different than 94902?;SELECT country_code, bank_branch_id FROM Beneficiary WHERE bank_branch_id = 37687 AND beneficiary_id <> 94902;transactions_db "What is the branch identification of the beneficiary with a country name different from ""USA"" and a country code smaller than ""FR""?";"SELECT bank_branch_id FROM Beneficiary WHERE country_name <> ""USA"" AND country_code <> ""FR""";transactions_db What is the bank_branch_id of the beneficiary in with a beneficiary_id in (32690, 40379) or bank-branch_id in (95430, 93837)?;SELECT bank_branch_id FROM Beneficiary WHERE beneficiary_id IN (32690, 40379) OR bank_branch_id IN (95430, 93837);transactions_db How many transactions have a client_id in 62918, 66592?;SELECT COUNT(client_id), is_fraudulent FROM Transactions WHERE client_id IN (62918, 66592);transactions_db What is the fraudulent for transactions with amount currency ('USD', 'NZD', 'JPY', 'HKD', 'GBP')?;SELECT is_fraudulent FROM Transactions WHERE amount_currency IN ('USD', 'NZD', 'JPY', 'HKD', 'GBP');transactions_db How many deposits have a lesser amount than 846063?;SELECT COUNT(*) FROM Deposits WHERE amount < 846063;loan_db How many countries are different from Germany or have a beneficiary id of 27086?;"SELECT COUNT(country_name), bank_branch_id FROM Beneficiary WHERE country_name <> ""Germany"" OR beneficiary_id = 27086";transactions_db What is the average balance of the account on a client id (81053, 61740)?;SELECT AVG(balance), client_id FROM Accounts WHERE client_id IN (81053, 61740);loan_db How many loans have a status ('current', 'overdue', 'paid off') and a client_ ID different than 85370?;SELECT COUNT(interest) FROM Loans WHERE status IN ('current', 'overdue', 'paid off') AND client_id <> 85370;loan_db What is the is_fraudulent, timestamp id of the transaction with a primary contract id of 6151 or a product family code which is different than 26431?;SELECT is_fraudulent, timestamp_id FROM Transactions WHERE primary_contract_id = 6151 OR product_family_code <> 26431;transactions_db What is the unique number of the primary contract id for the transaction with the beneficiary id 57840?;SELECT DISTINCT COUNT(primary_contract_id) FROM Transactions WHERE beneficiary_id = 57840;transactions_db What is the account_id and deposit_id of the deposit with an amount less than 485406?;SELECT account_id, deposit_id FROM Deposits WHERE amount <= 485406;loan_db What is the counterparty_donor_id, primary contract_id of the source with a not client ID of 4595?;SELECT counterparty_donor_id, primary_contract_id FROM Source WHERE NOT client_id = 4595;transactions_db What is the highest amount of deposits with account id of 31863?;SELECT MAX(amount), source FROM Deposits WHERE account_id = 31863;loan_db How many loans have a client_id of 70441?;SELECT COUNT(client_id), loan_id FROM Loans WHERE client_id = 70441;loan_db What is the beneficiary_id, client_id, transaction_amount of transaction in the source with a transaction amount larger than 33881 group by beneficiary_id?;SELECT Transactions.beneficiary_id, Source.client_id, COUNT(Transactions.transaction_id), Transactions.transaction_amount FROM Transactions INNER JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_amount > 33881 GROUP BY beneficiary_id;transactions_db What is the type, source, total balance quantity, client id of the account with a balance larger than 943004 and a client id in the group (78115, 97059) by type?;SELECT Accounts.type, Deposits.source, COUNT(Accounts.balance), Accounts.client_id FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.balance >= 943004 AND Accounts.client_id IN (78115, 97059) GROUP BY Accounts.type;loan_db How many customers were born by gender in 1970 group?;SELECT COUNT(last_name) FROM Clients WHERE year_of_birth = 1970 GROUP BY gender;loan_db What is the primary contract id, counterparty bank branch id of the client id (43120, 57869)?;SELECT primary_contract_id, counterparty_bank_branch_id FROM Source WHERE NOT(client_id IN (43120, 57869));transactions_db What is the account_id of the account with a client_id of 50272 and a 'deposit account','saving account')?;SELECT account_id FROM Accounts WHERE client_id = 50272 AND type IN ('Deposit account', 'Saving account');loan_db "What is the beneficiary_id, country name of the beneficiary with a country code like ""LU"" and a beneficiary_id of 9839?";"SELECT beneficiary_id, country_name FROM Beneficiary WHERE country_code LIKE ""LU"" AND beneficiary_id = 9839";transactions_db How many times is the counterparty branch ID 90653 and the primary contract ID 60746?;SELECT COUNT(counterparty_donor_id) FROM Source WHERE counterparty_bank_branch_id = 90653 AND primary_contract_id = 60746;transactions_db What is the timestamp_id, bank_branch_id and total amount of the currency for the transaction in the inner join beneficiary with a transaction_id different than 10584 or is_fraudulent > no_group by transaction_id?;"SELECT Transactions.timestamp_id, Beneficiary.bank_branch_id, COUNT(Transactions.amount_currency) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE transaction_id <> 10584 OR is_fraudulent <> ""No"" GROUP BY transaction_id";transactions_db "What is the average balance, account_id for the account with a type of ""deposit account"" or an account_id of 59622 by type?";"SELECT AVG(balance), account_id FROM Accounts WHERE type = ""Deposit account"" OR NOT account_id = 59622 GROUP BY type";loan_db How many transactions have a transaction amount of 77942?;SELECT COUNT(transaction_id), transaction_amount FROM Transactions WHERE transaction_amount = 77942;transactions_db How many hours are there for Friday group on each month?;"SELECT COUNT(hour_number) FROM Time WHERE day_name LIKE ""Friday"" GROUP BY month_number";transactions_db "What is the name, first_name, total (balance) value, type of ""Loan Account"" group?";"SELECT Accounts.account_id, Clients.first_name, COUNT(Accounts.balance), Accounts.type FROM Accounts INNER JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type = ""Loan account"" GROUP BY Accounts.account_id";loan_db How many counterparty bank branch ids have a client id in (95877, 49937)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE client_id IN (95877, 49937);transactions_db What is the loan_id, duration of the loan with a duration of 10?;SELECT loan_id, duration FROM Loans WHERE duration = 10;loan_db "How many customers joining accounts with an email on the group of ""Ma"" by gender?";"SELECT COUNT(*) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.email = ""johnson.smith@cs.ma"" GROUP BY Clients.gender";loan_db What is the counterparty_bank branch_id of the bank with a counterparty_bank branch branch id different from 43268 or a counterparty_donor_id of 79097?;SELECT counterparty_bank_branch_id FROM Source WHERE counterparty_bank_branch_id <> 43268 OR counterparty_donor_id = 79097;transactions_db What is the transaction_id, customer_id, number of product family code, beneficiary_id of the transaction left when the transaction ID is 78772 or when the beneficiary ID of product family code is different from 84181 Group?;SELECT Transactions.transaction_id, Source.client_id, COUNT(Transactions.product_family_code), Transactions.beneficiary_id FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_id = 78772 OR beneficiary_id <> 84181 GROUP BY product_family_code;transactions_db "How many deposits have a ""Cash"" source and an amount greater than 846173?";"SELECT COUNT(account_id) FROM Deposits WHERE source = ""Cash"" AND amount > 846173";loan_db How many counterparty bank branch ids have a primary contract id in (81447, 81456)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE primary_contract_id IN (81447, 81456);transactions_db How many times is the counterparty_bank branch - id in (23448, 57314)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_bank_branch_id IN (23448, 57314);transactions_db What is the earliest year that has a day-number less than 27?;SELECT MIN(year) FROM Time WHERE day_number < 27;transactions_db How many loans have a budget smaller than 292993 or an interest higher than 13 by group status?;SELECT COUNT(loan_id), budget FROM Loans WHERE budget <= 292993 OR interest > 13 GROUP BY status;loan_db How many loans have an interest greater than 15?;SELECT COUNT(*) FROM Loans WHERE interest >= 15;loan_db How many days were there for week number 7?;SELECT COUNT(day_name), week_number FROM Time WHERE week_number = 7;transactions_db What is the status of the loan with an interest greater than 2?;SELECT status FROM Loans WHERE interest > 2;loan_db "What is the unique number of transactions where is_fraudulent in ""No"" group by amount_currency?";"SELECT DISTINCT COUNT(client_id), is_fraudulent FROM Transactions WHERE is_fraudulent = ""No"" GROUP BY amount_currency";transactions_db What is the account_id of the deposit with an amount smaller than 785271?;SELECT account_id FROM Deposits WHERE amount <= 785271;loan_db What month, year is different than 2001?;SELECT month_number, year FROM Time WHERE year <> 2001;transactions_db What is the client_id and last name of the client whose year of birth is different from 1993?;SELECT client_id, last_name FROM Clients WHERE year_of_birth <> 1993;loan_db "What is the name, balance, total number of email addresses, year_of_birth of the client with a gender different than ""male"" and a year_of-birth of the 1993 group by year of birth?";"SELECT Clients.first_name, Accounts.balance, COUNT(Clients.email), Clients.year_of_birth FROM Clients RIGHT JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.gender <> ""Male"" AND Clients.year_of_birth = 1993 GROUP BY Clients.year_of_birth";loan_db What is the name of the country and beneficiary id of the beneficiary with a beneficiary id different from 32723?;SELECT country_name, beneficiary_id FROM Beneficiary WHERE beneficiary_id <> 32723;transactions_db How many deposits have an account_id in (28163, 37655)?;SELECT COUNT(*) FROM Deposits WHERE account_id IN (28163, 37655);loan_db What is the branch id of the counterparty bank, primary contract id when the client id is different than 94070 or the counterparty donor id is smaller than 61939?;SELECT counterparty_bank_branch_id, primary_contract_id FROM Source WHERE client_id <> 94070 OR counterparty_donor_id <> 61939;transactions_db What is the client_id, hour_number, number of transaction_id, primary_contract_id of the transaction that has a time on timestamp_id of timestamp_id when amount_currency is different from the Group of '' HKD '' by transaction_id?;"SELECT Transactions.client_id, Time.hour_number, COUNT(Transactions.transaction_id), Transactions.primary_contract_id FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency <> ""HKD"" GROUP BY transaction_id";transactions_db What is the client_id and beneficiary_id of the transaction with a transaction_id different than 36672 and a timestamp-id of 92908?;SELECT client_id, beneficiary_id FROM Transactions WHERE transaction_id <> 36672 AND NOT timestamp_id = 92908;transactions_db What is the total number of transactions with a transaction amount different than 97685 or client_id of 33713?;SELECT COUNT(client_id) FROM Transactions WHERE transaction_amount <> 97685 OR client_id = 33713;transactions_db What is the counterparty_bank_branch_id, primary_contract_id when the counterparty bank branch_id is different than 91437?;SELECT counterparty_bank_branch_id, primary_contract_id FROM Source WHERE counterparty_bank_branch_id <> 91437;transactions_db "What is the email, budget and total number of clients left – joining loans with client_id of client_id for ""milwaukee"" and email like ma"" group by gender?";"SELECT Clients.email, Loans.budget, COUNT(Clients.first_name) FROM Clients LEFT JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.city = ""Milwaukee"" AND Clients.email LIKE ""campbell.smith@cs.ma"" GROUP BY Clients.gender";loan_db What is the account_id of the deposit that has an account_id not(staple_id in (70526, 78935))?;SELECT account_id FROM Deposits WHERE NOT(account_id IN (70526, 78935));loan_db What is the unique client_id, counterparty_donor_id, total number of transactions joining the source on primary contract-id of primary contract-id, when the product family code is 49590 by amount_currency group?;SELECT DISTINCT Transactions.client_id, Source.counterparty_donor_id, COUNT(Transactions.timestamp_id), Transactions.transaction_amount FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE NOT product_family_code = 49590 GROUP BY amount_currency;transactions_db How many times is the first name a first name like martin or the year_of_birth greater than 1964 group by email?;SELECT COUNT(*) FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE NOT Clients.first_name LIKE Martinez OR Clients.year_of_birth >= 1964 GROUP BY Clients.email;loan_db What is the client_id of the server with a client_id of 68523?;SELECT client_id FROM Source WHERE client_id = 68523;transactions_db What is product_family_code, week_number, total number of client_ids, transaction_mount for the transaction that has a transaction amount differing from 73701 Group by primary contract id?;SELECT Transactions.product_family_code, Time.week_number, COUNT(Transactions.client_id), Transactions.transaction_amount FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_amount <> 73701 GROUP BY primary_contract_id;transactions_db What is the total number of transactions with a primary contract id (86658, 82937) or a product family code different than 70551?;SELECT COUNT(timestamp_id), transaction_amount FROM Transactions WHERE primary_contract_id IN (86658, 82937) OR product_family_code <> 70551;transactions_db What is the total number of loan_id, client_id for the loan duration between 6 and 23 or a budget of 271075 Group by interest value?;SELECT COUNT(loan_id), client_id FROM Loans WHERE duration BETWEEN 6 AND 23 OR budget = 271075 GROUP BY interest;loan_db What is product_family_code, customer_id, total currency, value of transaction that leave the source on the primary contract_id of the primary contract_id when is_fraudulent is different by the product_family_code?;"SELECT Transactions.product_family_code, Source.client_id, COUNT(Transactions.amount_currency), Transactions.transaction_amount FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE is_fraudulent <> ""Yes"" GROUP BY product_family_code";transactions_db What is the source, deposit_id of the deposit with account_id of 69224 or deposit_id of 72186?;SELECT source, deposit_id FROM Deposits WHERE NOT account_id = 69224 OR deposit_id = 72186;loan_db How many customers join accounts with a city in the group ('Boston', 'Buffalo', 'Louisville') by email?;SELECT COUNT(*) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.city IN ('Boston', 'Buffalo', 'Louisville') GROUP BY Clients.email;loan_db What is the sum of the interest for loans with a loan_id different than 13949?;SELECT SUM(budget), interest FROM Loans WHERE loan_id <> 13949;loan_db What is the unique interest, year of birth, total(budget), status of the loan left on client id of client id when the interest is greater than 24 group by budget?;SELECT DISTINCT Loans.interest, Clients.year_of_birth, COUNT(Loans.budget), Loans.status FROM Loans LEFT JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.interest >= 24 GROUP BY Loans.budget;loan_db What is the country name, country code of the beneficiary with a country name in ('Luxembourg', 'USA', 'France')?;SELECT country_name, country_code FROM Beneficiary WHERE country_name IN ('Luxembourg', 'USA', 'France');transactions_db How many loans have a duration between 7 and 20?;SELECT COUNT(loan_id) FROM Loans WHERE duration BETWEEN 7 AND 20;loan_db What is the counterparty bank branch id, primary contract id of the client id 20322?;SELECT counterparty_bank_branch_id, primary_contract_id FROM Source WHERE client_id = 20322;transactions_db What is the primary contract ID for the counterparty bank branch ID in (62418, 68458) or the counterparty donor ID in (98099, 89512)?;SELECT primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (62418, 69858) OR counterparty_donor_id IN (98099, 89512);transactions_db What is the loan_id of the loan with a loan_id different than 11574?;SELECT loan_id FROM Loans WHERE loan_id <> 11574;loan_db What is the source of the deposit that has an amount different than 96706 and is not between 713719 and 788397?;SELECT source FROM Deposits WHERE NOT amount BETWEEN 713719 AND 788397 AND account_id <> 96706;loan_db What is the day_name, hour-length of the episode with a week-number of 3, or a year larger than 2012?;SELECT day_name, hour_number FROM Time WHERE week_number = 3 OR NOT year > 2012;transactions_db How many transactions have a timestamp id different than 95873?;SELECT COUNT(amount_currency) FROM Transactions WHERE timestamp_id <> 95873;transactions_db What is the amount, balance, and total number of deposit ids for the accounts with accounts with account id when source is different than check group by deposit id?;SELECT Deposits.amount, Accounts.balance, COUNT(Deposits.source), Deposits.deposit_id FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE NOT Deposits.source <> Check GROUP BY Deposits.deposit_id;loan_db "What is the name of the account with a client_id of 38689 or type like ""Loan account""?";"SELECT * FROM Accounts WHERE client_id = 38689 OR type LIKE ""Loan account""";loan_db What is the client_id of the account with a client_id of 72705?;SELECT client_id FROM Accounts WHERE client_id = 72705;loan_db What is the Account_ID, city and the total number of types of accounts that join clients with a type of Client ID of Client ID and a balance larger than 411484 Group by type?;SELECT Accounts.account_id, Clients.city, COUNT(Accounts.type) FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type IN ('Loan account', 'Deposit account') AND Accounts.balance >= 411484 GROUP BY Accounts.type;loan_db What is the unique number of interest status on loans with a not client_id of 76844?;SELECT DISTINCT COUNT(interest), status FROM Loans WHERE NOT client_id = 76844;loan_db "How many customers have a first name that is different than ""Watson""?";"SELECT COUNT(first_name), last_name FROM Clients WHERE first_name <> ""Watson""";loan_db What is the transaction_id of the transaction with a timestamp in (53714, 14432) or a client_id different than 35430?;SELECT transaction_id FROM Transactions WHERE timestamp_id IN (53714, 14432) OR client_id <> 35430;transactions_db What is the client_id and primary contract_id of the client that has a client_id different than 84683?;SELECT client_id, primary_contract_id FROM Source WHERE client_id <> 84683;transactions_db "What is the year of birth, duration, total number of first name, city for the client with a client - ID of client - ID when the year of birth is less than 1982, or when the first name is different by the first name as ""Robinson"" Group?";"SELECT Clients.year_of_birth, Loans.duration, COUNT(Clients.first_name), Clients.city FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE NOT Clients.year_of_birth <= 1982 OR Clients.first_name <> ""Robinson"" GROUP BY Clients.first_name";loan_db "What is the unique email for the client with a first name like ""Ward""?";"SELECT DISTINCT email FROM Clients WHERE first_name LIKE ""Ward""";loan_db "What is the transaction_amount and timestamp_id when transaction value is different than 564 or is_fraudulent is > ""-no""";"SELECT transaction_amount, timestamp_id FROM Transactions WHERE transaction_id <> 564 OR is_fraudulent <> ""No""";transactions_db What is the amount of currency, client_id and transaction_id of the transaction that has a transaction quantity between 2262 and 61347 and a product_family_code of the 94607 Group by timestamp_id?;SELECT Transactions.amount_currency, Source.client_id, COUNT(Transactions.transaction_id) FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_amount BETWEEN 2262 AND 61347 AND NOT product_family_code = 94607 GROUP BY timestamp_id;transactions_db "What is the client_id, first name of the client in an email that is different from ""ma"" or a gender smaller than ""female""?";"SELECT client_id, first_name FROM Clients WHERE email <> ""perry.smith@cs.ma"" OR gender <> ""Female""";loan_db What is the total amount of transactions for the transaction amount between 42596 and 84086?;SELECT COUNT(amount_currency) FROM Transactions WHERE transaction_amount BETWEEN 42596 AND 84086;transactions_db What is the primary contract id, the country_code and the total number of client ids for the transactions in the inner join beneficiary with a primary contract id of 19209 Group BY is_fraudulent?;SELECT Transactions.primary_contract_id, Beneficiary.country_code, COUNT(Transactions.client_id) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE primary_contract_id = 19209 GROUP BY is_fraudulent;transactions_db What is the amount of currency, transaction ID for transactions with NOT transaction ID 52879 or beneficiary ID 8678?;SELECT amount_currency, transaction_id FROM Transactions WHERE NOT transaction_id = 52879 OR beneficiary_id = 8678;transactions_db What is the loan_id of the loan with a duration less than 24 and a budget larger than 876382?;SELECT loan_id FROM Loans WHERE duration < 24 AND budget >= 876382;loan_db What is the counterparty_donor_id of the company with not(primary_contract_id in (18705, 55947)) or the counterparty_donor_id of 28344?;SELECT counterparty_donor_id FROM Source WHERE NOT(primary_contract_id IN (18705, 55947)) OR counterparty_donor_id = 28344;transactions_db What is the bank_branch_id, country code of the beneficiary with a bank branch_id in (49207, 59974)?;SELECT bank_branch_id, country_code FROM Beneficiary WHERE bank_branch_id IN (49207, 59974);transactions_db How many deposits have an amount that is not greater than 622843?;SELECT COUNT(*) FROM Deposits WHERE NOT amount > 622843;loan_db What is the product_family_code, the timestamp_id of the transaction with a client - ID of 23463?;SELECT product_family_code, timestamp_id FROM Transactions WHERE client_id = 23463;transactions_db "How many emails are there for the client with the first name ""Long""?";"SELECT COUNT(email) FROM Clients WHERE first_name = ""Long""";loan_db "What city, name has an email of ""Ma"" and a city in ('Oklahoma city','springfield', 'new york city')?";"SELECT city, first_name FROM Clients WHERE email = ""hughes.williams@cs.ma"" AND city IN ('Oklahoma City', 'Springfield', 'New York City')";loan_db How many loans were not paid (status in ('current', 'unpaid', 'paid'))?;SELECT COUNT(duration), client_id FROM Loans WHERE NOT(status IN ('current', 'overdue', 'paid off'));loan_db "What is the balance of the account with a type like ""Credit account"" or account_id (86028, 67512)?";"SELECT balance FROM Accounts WHERE type LIKE ""Loan account"" OR account_id IN (86028, 67512)";loan_db What is the primary contract ID if the counterparty_donor_id is different from 95536 or the counterparty_bank_branch_id is in (15845, 50239)?;SELECT primary_contract_id FROM Source WHERE counterparty_donor_id <> 95536 OR counterparty_bank_branch_id IN (15845, 50239);transactions_db What gender is the client with a birth year before 1980?;SELECT gender FROM Clients WHERE year_of_birth < 1980;loan_db What year did the client in Raleigh have a client-id with 47979, 56029)?;"SELECT year_of_birth FROM Clients WHERE NOT(client_id IN (47979, 56029)) OR city = ""Raleigh""";loan_db What is the unique client_id, hour_number, total number of recipient_ids, transaction_amount of the transaction that on timestamp_id of timestamp_id has a time when not client_id is 69008, and when product_family_code is 20783 group by transaction amount?;SELECT DISTINCT Transactions.client_id, Time.hour_number, COUNT(Transactions.beneficiary_id), Transactions.transaction_amount FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE NOT client_id = 69008 AND product_family_code = 20783 GROUP BY transaction_amount;transactions_db What is the deposit_id and account_id of deposit with an account_id of 33381 or an amount smaller than 865231?;SELECT deposit_id, account_id FROM Deposits WHERE account_id = 33381 OR amount <= 865231;loan_db "What is the total number of accounts with a balance bigger than 923091 or a "" deposit account""?";"SELECT COUNT(type), account_id FROM Accounts WHERE balance > 923091 OR type = ""Deposit account""";loan_db What is the average day-number, day_name when the day-number is different from the sunday and the hour-number is not between 7 and 23?;"SELECT AVG(day_number), day_name FROM Time WHERE day_name <> ""Sunday"" AND NOT hour_number BETWEEN 7 AND 23";transactions_db "What is the name and client_id of the client whose last name is different than ""long""?";"SELECT first_name, client_id FROM Clients WHERE last_name <> ""Long""";loan_db What is the timestamp_id, transaction_amount of transactions with a transaction id of 29465?;SELECT timestamp_id, transaction_amount FROM Transactions WHERE transaction_id = 29465;transactions_db What is the average amount of deposits for the account with an account_id different than 62931?;SELECT AVG(amount) FROM Deposits WHERE account_id <> 62931;loan_db What is the counterparty bank branch id of the bank with a counterparty_donor_id of 20347 and a client_id of 55226?;SELECT counterparty_bank_branch_id FROM Source WHERE counterparty_donor_id = 20347 AND client_id = 55226;transactions_db How many customers have a client_id of 45902 group by first name?;SELECT COUNT(gender), client_id FROM Clients WHERE client_id = 45902 GROUP BY first_name;loan_db What is the type of account_id for accounts with a client_id different from 89149?;SELECT type, account_id FROM Accounts WHERE client_id <> 89149;loan_db How many clients have a client_id different than 945?;SELECT COUNT(*) FROM Clients WHERE client_id <> 945;loan_db How many accounts have a not(client_id in (98980, 99593)) and an account ID (31325, 57928)?;SELECT COUNT(*) FROM Accounts WHERE NOT(client_id IN (98980, 99593)) AND account_id IN (31325, 57928);loan_db What is the counterparty_bank branch ID when the primary contract number is different than 97197 or the client number is (25504, 52363)?;SELECT counterparty_bank_branch_id FROM Source WHERE primary_contract_id <> 97197 OR client_id IN (25504, 52363);transactions_db What is the amount of currency, day_number, total number of product family code, transaction_id for the transaction in the inner join time of timestamp_id when the amount currency is like the AUD group with primary contract_id?;"SELECT Transactions.amount_currency, Time.day_number, COUNT(Transactions.product_family_code), Transactions.transaction_id FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE amount_currency LIKE ""AUD"" GROUP BY primary_contract_id";transactions_db What is the client_id of the transaction with a transaction value between 87359 and 93957 and a client_id (55481, 13974)?;SELECT client_id FROM Transactions WHERE transaction_amount BETWEEN 87359 AND 93957 AND client_id IN (55481, 13974);transactions_db What is the client_id, country_name, total number of is_fraudulents, timestamp_id for the transaction on the signatory with a timestamp_id different than 45355 or primary_contract_id larger than 91885 grouped with primary_contract_id?;SELECT Transactions.client_id, Beneficiary.country_name, COUNT(Transactions.is_fraudulent), Transactions.timestamp_id FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE timestamp_id <> 45355 OR primary_contract_id <> 91885 GROUP BY primary_contract_id;transactions_db "What is the duration of the loan with a status like ""paid off"" or a loan_id that is different than 96739?";"SELECT duration, status FROM Loans WHERE status LIKE ""paid off"" OR loan_id <> 96739";loan_db How many customers joining clients by type with an account - ID (40869, 15683) or a balance smaller than 85655?;SELECT COUNT(*) FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.account_id IN (40869, 15683) OR Accounts.balance <= 85655 GROUP BY Accounts.type;loan_db What is the highest time number, and hour number of the day with a timestamp_id of 84683?;SELECT MAX(day_number), hour_number FROM Time WHERE timestamp_id = 84683;transactions_db What is the source, balance, total deposit_id, amount of the deposit in the account_id of the account_id with an amount larger than 306132 or a deposit_id of a 95146 group by amount?;SELECT Deposits.source, Accounts.balance, COUNT(Deposits.deposit_id), Deposits.amount FROM Deposits INNER JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount > 306132 OR Deposits.deposit_id = 95146 GROUP BY Deposits.amount;loan_db How many primary contract ids have a counterparty - donor - id of 99719 and a client - id of 88585?;SELECT COUNT(primary_contract_id) FROM Source WHERE counterparty_donor_id = 99719 AND client_id = 88585;transactions_db What is the greatest hour number for the time with an hour number smaller than 3?;SELECT MAX(hour_number) FROM Time WHERE hour_number <= 3;transactions_db How many deposit_ids have an amount smaller than 618938 or a source in the group ('Cash', 'Transaction') by deposit_id?;SELECT COUNT(deposit_id) FROM Deposits WHERE amount <= 618938 OR source IN ('Cash', 'Transaction') GROUP BY deposit_id;loan_db "How many customers have a last name like ""Kelly""?";"SELECT COUNT(first_name) FROM Clients WHERE last_name LIKE ""Kelly""";loan_db "How many deposits left to join accounts on account_id account_id when source is ""Transaction"" or deposit_id in Group (43484, 36802) by amount";"SELECT COUNT(*) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source LIKE ""Transaction"" OR Deposits.deposit_id IN (43484, 36802) GROUP BY Deposits.amount";loan_db What is the deposit_id of the deposit with a deposit_id of 15913?;SELECT deposit_id FROM Deposits WHERE deposit_id = 15913;loan_db How many primary contract ids are different than 98509 or counterparty_donor id is 89795?;SELECT COUNT(primary_contract_id) FROM Source WHERE primary_contract_id <> 98509 OR counterparty_donor_id = 89795;transactions_db What is the source, client_id, total deposit_id, value for account_id of the transaction group by source?;"SELECT Deposits.source, Accounts.client_id, COUNT(Deposits.deposit_id), Deposits.amount FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source LIKE ""Transaction"" GROUP BY Deposits.source";loan_db What is the loan amount with interest and not(status in ('current', 'overdue', 'paid'))?;SELECT * FROM Loans WHERE interest = 22 AND NOT(status IN ('current', 'overdue', 'paid off'));loan_db What is the loan_id and the client_id of the loan with a interest less than 24 or a duration less than 25?;SELECT loan_id, client_id FROM Loans WHERE interest <= 24 OR duration < 25;loan_db How many loans have a budget smaller than 671386 Group by Client - ID?;SELECT COUNT(client_id) FROM Loans WHERE budget < 671386 GROUP BY client_id;loan_db "What is the total number of days and hours in 2022 when the day name is different than ""Friday""?";"SELECT COUNT(day_number), hour_number FROM Time WHERE year = 2022 AND day_name <> ""Friday""";transactions_db What is the deposit amount of the bank with an amount less than 417844?;SELECT * FROM Deposits WHERE NOT amount <= 417844;loan_db How many loans have a client_id in the group (24745, 29639) by status?;SELECT COUNT(*) FROM Loans WHERE client_id IN (24745, 29639) GROUP BY status;loan_db How many counterparty bank branch ids have a primary contract id (47102, 64203)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE primary_contract_id IN (47102, 64203);transactions_db What is the transaction_id of the transaction with a primary contract_id of 21119?;SELECT transaction_id FROM Transactions WHERE primary_contract_id = 21119;transactions_db What is the account_id, interest and total balance of the account with a client_id of 84723 and a balance that is not in the group between 140170 and 271920 by balance?;SELECT Accounts.account_id, Loans.interest, COUNT(Accounts.balance) FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.account_id = 84723 AND NOT Accounts.balance BETWEEN 140170 AND 271920 GROUP BY Accounts.balance;loan_db What is the amount, deposit_id of the deposit with a source in ('Cash', 'Check', 'Transaction') and an account_id in (36334, 94846)?;SELECT amount, deposit_id FROM Deposits WHERE source IN ('Cash', 'Check', 'Transaction') AND account_id IN (36334, 94846);loan_db What is the counterparty_donor_id of the client with a counterparty_donor_id different than 28659?;SELECT counterparty_donor_id FROM Source WHERE counterparty_donor_id <> 28659 OR client_id = 98641;transactions_db What is the counterparty_donor_id, primary contract_id when counterparty bank branch id is different than 90857?;SELECT counterparty_donor_id, primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (23311, 79268) AND counterparty_donor_id <> 90857;transactions_db "What is the country code, country name of the beneficiary with a country code different than ""LU"" or bank branch id in (29898, 83554)?";"SELECT country_code, country_name FROM Beneficiary WHERE country_code <> ""LU"" OR bank_branch_id IN (29898, 83554)";transactions_db What is balance, email, total number of account - ID, type of account with client - id and account - ID of 17700 group by account - ID?;"SELECT Accounts.balance, Clients.email, COUNT(Accounts.account_id), Accounts.type FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type LIKE ""Saving account"" AND Accounts.account_id = 17700 GROUP BY Accounts.account_id";loan_db What week number has a timestamp id different than 50525, or a month number smaller than 10?;SELECT week_number FROM Time WHERE timestamp_id <> 50525 OR NOT month_number < 10;transactions_db What is the counterparty_bank branch ID of the bank with a primary contract ID 68335 and a counterparty_bank branch ID of 76027?;SELECT counterparty_bank_branch_id FROM Source WHERE primary_contract_id = 68335 AND counterparty_bank_branch_id = 76027;transactions_db What is the unique counterparty_donor_id, primary_contract_id of the source with a primary contract_id of 48276?;SELECT DISTINCT counterparty_donor_id, primary_contract_id FROM Source WHERE primary_contract_id = 48276;transactions_db What is the interest, budget for loans with a budget larger than 732902?;SELECT interest, budget FROM Loans WHERE budget > 732902;loan_db What is the name of the account number on the account in (83815, 49567)?;SELECT * FROM Deposits WHERE account_id IN (83815, 49567);loan_db "What is the beneficiary_id, counterparty_donor_id, total currency amount, transaction id of the primary contract id with a beneficiary_id of 9560 or is false of the ""yes"" group?";"SELECT Transactions.beneficiary_id, Source.counterparty_donor_id, COUNT(Transactions.amount_currency), Transactions.transaction_id FROM Transactions INNER JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE beneficiary_id = 9560 OR is_fraudulent = ""Yes"" GROUP BY is_fraudulent";transactions_db What is the name, status, gender, the year of birth of the client with a first name of rivera '' or gender in the group ( 'female ','male ') by last name?;"SELECT Clients.first_name, Loans.status, COUNT(Clients.gender), Clients.year_of_birth FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.first_name = ""Rivera"" OR Clients.gender IN ('Female', 'Male') GROUP BY Clients.last_name";loan_db What is the beneficiary_id of the bank with a country code of «UK» or bank_branch_id in (47937, 25402)?;"SELECT beneficiary_id FROM Beneficiary WHERE country_code = ""UK"" OR bank_branch_id IN (47937, 25402)";transactions_db What is the deposit_id and account_id of deposit with not(deposit_id in (26486, 86270)) or an account_id that is different than 74851?;SELECT deposit_id, account_id FROM Deposits WHERE NOT(deposit_id IN (26486, 86270)) OR NOT account_id <> 74851;loan_db "What is the timestamp_id, primary_contract_id of the transaction with an amount_currency different than ""JPY""?";"SELECT timestamp_id, primary_contract_id FROM Transactions WHERE amount_currency <> ""JPY""";transactions_db What is the deposit_id and amount of the deposit with a deposit_id different from 9275 and a amount larger than 754925?;SELECT deposit_id, amount FROM Deposits WHERE deposit_id <> 9275 AND amount >= 754925;loan_db "What is the unique country_code and country_name of the beneficiary with a beneficiary_id in (85070, 77473) or a country_code like ""DE""?";"SELECT DISTINCT country_code, country_name FROM Beneficiary WHERE beneficiary_id IN (85070, 77473) OR country_code LIKE ""DE""";transactions_db How many times is the counterparty_donor_id in (78744, 87672)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE counterparty_donor_id IN (78744, 87672);transactions_db How many counterparty bank branch ids have a primary contract id in (83846, 86436)?;SELECT COUNT(counterparty_bank_branch_id) FROM Source WHERE primary_contract_id IN (83846, 86436);transactions_db "What is the gender of the client with an email like ""ma"" and a last name of ""eed""?";"SELECT gender FROM Clients WHERE email LIKE ""coleman.williams@cs.ma"" AND last_name = ""Reed""";loan_db What is the total number of days that have a month smaller than 11 and a year different from 2012?;SELECT COUNT(day_name) FROM Time WHERE month_number <= 11 AND year <> 2012;transactions_db What is the transaction_id, hour_number, number of primary contract_ids is_fraudulent for the transaction that has a time on the timestamp_id of timestamp_id when the product_family_code is different from the 76372 group by beneficiary_id?;SELECT Transactions.transaction_id, Time.hour_number, COUNT(Transactions.primary_contract_id), Transactions.is_fraudulent FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code <> 76372 GROUP BY beneficiary_id;transactions_db How many loans have a client_id of 47884?;SELECT COUNT(budget) FROM Loans WHERE client_id = 47884;loan_db What is balance, year of birth and total number of account ids for accounts joining clients on the client id of client_id when balance is less than 436162, and when account id is by type (66014, 62646)?;SELECT Accounts.balance, Clients.year_of_birth, COUNT(Accounts.account_id) FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.balance <= 436162 AND Accounts.account_id IN (66014, 62646) GROUP BY Accounts.type;loan_db What is the transaction amount when the primary contract id is different from 78405 or the client id is not 85162?;SELECT transaction_amount FROM Transactions WHERE primary_contract_id <> 78405 OR NOT client_id = 85162;transactions_db What is the client_id, week_number, total(is_fraudulent), transaction_amount of the transaction in the inner-joint time with a product_family_code 2984 and a beneficiary_id different from the 91299 group by transaction amount?;SELECT Transactions.client_id, Time.week_number, COUNT(Transactions.is_fraudulent), Transactions.transaction_amount FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code = 2984 AND beneficiary_id <> 91299 GROUP BY transaction_amount;transactions_db "How many cities have an email like ""ma?";"SELECT COUNT(city) FROM Clients WHERE email LIKE ""anderson.williams@cs.ma""";loan_db What is the client_id, counterparty bank branch_id, and the total amount of the currency for the transaction with source on primary contract-id of primary contract-id when not is_fraudulent is not yes or transaction-id in the (48701, 93096) group by product family code;SELECT Transactions.client_id, Source.counterparty_bank_branch_id, COUNT(Transactions.amount_currency) FROM Transactions RIGHT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE NOT is_fraudulent = Yes OR transaction_id IN (48701, 93096) GROUP BY product_family_code;transactions_db What is the primary contract id, the client id when the counterparty bank branch id is in (15301, 81858) or the counterparty donor id (48038, 43981)?;SELECT primary_contract_id, client_id FROM Source WHERE counterparty_bank_branch_id IN (15301, 81858) OR counterparty_donor_id IN (48038, 43981);transactions_db What is the unique number of the counterparty bank branch id and counterparty donor id when the client id is different from 21629 or the primary contract id is less than 64739?;SELECT DISTINCT COUNT(counterparty_bank_branch_id), counterparty_donor_id FROM Source WHERE client_id <> 21629 OR NOT primary_contract_id <> 64739;transactions_db What is the status of the loan with a not different status than current and a budget between 133705 and 781151?;SELECT status FROM Loans WHERE NOT status <> current AND budget BETWEEN 133705 AND 781151;loan_db What is the total number of primary contract ID, counterparty bank branch ID if primary contract ID is (80340, 92229), and when customer ID is (51424, 56797)?;SELECT COUNT(primary_contract_id), counterparty_bank_branch_id FROM Source WHERE NOT(primary_contract_id IN (80340, 92229)) AND client_id IN (51424, 56797);transactions_db What is the loan_id, type, total(budget), status of the loan with a duration between 9 and 24 and a loan-id in the group (80172, 94746)?;SELECT Loans.loan_id, Accounts.type, COUNT(Loans.budget), Loans.status FROM Loans INNER JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.duration BETWEEN 9 AND 24 AND Loans.loan_id IN (80172, 94746) GROUP BY Loans.loan_id;loan_db What is the counterparty_donor_id, client_id of the client with a primary contract ID of 92670?;SELECT counterparty_donor_id, client_id FROM Source WHERE primary_contract_id = 92670;transactions_db How many different numbers are there for the counterparty bank branch id, primary contract id when counterparty bank branch id is 98902?;SELECT COUNT(counterparty_bank_branch_id), primary_contract_id FROM Source WHERE counterparty_bank_branch_id = 98902;transactions_db "How many accounts have a deposit_id of account id, when client_id is (13539, 73424) or when the type is the group ""deposit account""";"SELECT COUNT(*) FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.client_id IN (13539, 73424) OR Accounts.type LIKE ""Deposit account"" GROUP BY Accounts.type";loan_db What is the transaction amount when the client ID is different than 80622 or the primary contract ID is smaller than 93940?;SELECT transaction_amount FROM Transactions WHERE client_id <> 80622 OR primary_contract_id <> 93940;transactions_db What is the timestamp_id of the day number between 4 and 14?;SELECT timestamp_id FROM Time WHERE day_number BETWEEN 4 AND 14;transactions_db What is is_fraudulent, year, total number of transactions, client_id when time is timestamp_id or product_family_code 47634, or when the client_id is different from 92845 GROUP by is_fraudulent?;SELECT Transactions.is_fraudulent, Time.year, COUNT(Transactions.transaction_amount), Transactions.client_id FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE NOT product_family_code = 47634 OR client_id <> 92845 GROUP BY is_fraudulent;transactions_db "How many banks have a country code different from ""England ""?";"SELECT COUNT(bank_branch_id), country_code FROM Beneficiary WHERE country_code IN ('FR', 'LU', 'UK', 'DE', 'CA', 'US') OR country_name <> ""England""";transactions_db What is the name of the beneficiary with country code ('FR', 'DE', 'UK', 'LU', 'CA', 'US') or a beneficiary id of 98048?;SELECT country_name FROM Beneficiary WHERE country_code IN ('FR', 'DE', 'UK', 'LU', 'CA', 'US') OR beneficiary_id = 98048;transactions_db What is the interest, account_id, total number of (duration) budget for the loan with an interest different than 17 group by budget?;SELECT Loans.interest, Accounts.account_id, COUNT(Loans.duration), Loans.budget FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.interest <> 17 GROUP BY Loans.budget;loan_db What is the total number of the deposit ID, source for the account with a deposit ID of 94208 and a deposit ID of (94653, 99147)?;SELECT COUNT(deposit_id), source FROM Deposits WHERE deposit_id IN (94653, 99147) AND account_id = 94208;loan_db How many transactions have a timestamp id of 34589 or a client id in (99736, 90650)?;SELECT COUNT(amount_currency), product_family_code FROM Transactions WHERE timestamp_id = 34589 OR client_id IN (99736, 90650);transactions_db How many beneficiaries have a bank branch ID (98487, 30189) and a country code in ('DE', 'CA', 'US', 'UK', 'LU', 'BE', 'FR')?;SELECT COUNT(beneficiary_id) FROM Beneficiary WHERE bank_branch_id IN (98487, 30189) AND country_code IN ('DE', 'CA', 'US', 'UK', 'LU', 'BE', 'FR');transactions_db "What is the branch identification of the beneficiary with a beneficiary id of 65493 or a country code different than ""UK""?";"SELECT bank_branch_id FROM Beneficiary WHERE beneficiary_id = 65493 OR country_code <> ""UK""";transactions_db "What is the sum of the hour number for the day number greater than 28 or the day name of the group called ""Saturday"" by week number?";"SELECT SUM(hour_number) FROM Time WHERE day_number >= 28 OR day_name = ""Saturday"" GROUP BY week_number";transactions_db What is the counterparty_bank branch ID of the bank with a counterparty_donor_id of 14637 and a counterparty bank branch ID in (42602, 37824)?;SELECT counterparty_bank_branch_id FROM Source WHERE counterparty_donor_id = 14637 AND counterparty_bank_branch_id IN (42602, 37824);transactions_db What is the name of the client with a year of birth less than 1964 and a first name like “Baker”?;"SELECT last_name, gender FROM Clients WHERE year_of_birth <= 1964 AND first_name LIKE ""Baker""";loan_db What is is_fraudulent and the total number of beneficiary ids for all the remaining transactions? Join source on primary contract id of primary contract id, when beneficiary id is different from 86524 GROUP by transaction amount?;SELECT Transactions.is_fraudulent, Source.counterparty_donor_id, COUNT(Transactions.beneficiary_id) FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE beneficiary_id <> 86524 GROUP BY transaction_amount;transactions_db How many deposits have an account_id different than 77962 group by account_id?;SELECT COUNT(source), deposit_id FROM Deposits WHERE account_id <> 77962 GROUP BY account_id;loan_db What is the amount, balance and total deposit_id of deposit_id in the group (79514, 6299) by amount?;SELECT Deposits.amount, Accounts.balance, COUNT(Deposits.deposit_id) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (79514, 6299) GROUP BY Deposits.amount;loan_db What is the primary contract ID of the company with a primary contract ID different than 9768 and a counterparty ID of 70174?;SELECT primary_contract_id FROM Source WHERE primary_contract_id <> 9768 AND counterparty_donor_id = 70174;transactions_db What is the client_id, amount and total balance of the account with a balance different from 817227 and a type in the group ('Deposit Account', 'Loan Account') by client_id?;SELECT Accounts.client_id, Deposits.amount, COUNT(Accounts.balance) FROM Accounts RIGHT JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.balance <> 817227 AND Accounts.type IN ('Deposit account', 'Loan account') GROUP BY Accounts.client_id;loan_db What is the day number, week number of the year different than 2023?;SELECT day_number, week_number FROM Time WHERE year <> 2023;transactions_db "What city is the first name of the client with the first name ""Thompson""?";"SELECT city, first_name FROM Clients WHERE first_name = ""Thompson""";loan_db What week number has an hour number of 5 and a timestamp_id different than 80327?;SELECT week_number FROM Time WHERE hour_number = 5 AND timestamp_id <> 80327;transactions_db What is the budget, client_id of the loan with a status in ('paid', 'current')?;SELECT budget, client_id FROM Loans WHERE status IN ('paid off', 'current');loan_db What is the type, gender, total balance, account_id of the « loan account group with a client ID of 73618?;"SELECT Accounts.type, Clients.gender, COUNT(Accounts.balance), Accounts.account_id FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.account_id = 73618 AND Accounts.type = ""Loan account"" GROUP BY Accounts.balance";loan_db How many loans have a duration smaller than 26 or have a client_id (65331, 1725)?;SELECT COUNT(client_id), status FROM Loans WHERE duration <= 26 OR client_id IN (65331, 1725);loan_db What is the transaction_id, day_number, total number of the primary contract_id, product_family_code for a transaction that has a time on the timestamp_id of the timestamp_id when beneficiary_id is different by the transaction amount from 26037?;SELECT Transactions.transaction_id, Time.day_number, COUNT(Transactions.primary_contract_id), Transactions.product_family_code FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE beneficiary_id <> 26037 GROUP BY transaction_amount;transactions_db What is the product_family_code, bank branch_id and the total number of client_ids for the transaction inner join beneficiary with a transaction_id in (39194, 68462) and a primary contract_id of the 47551 group by primary contract_id?;SELECT Transactions.product_family_code, Beneficiary.bank_branch_id, COUNT(Transactions.client_id) FROM Transactions INNER JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE transaction_id IN (39194, 68462) AND primary_contract_id = 47551 GROUP BY primary_contract_id;transactions_db What is the amount of currency, primary contract id for transactions with client id in (18125, 63321)?;SELECT amount_currency, primary_contract_id FROM Transactions WHERE client_id IN (18125, 63321);transactions_db How many deposits have an account_id in (39534, 31806) or a deposit_id different than 42950?;SELECT COUNT(deposit_id) FROM Deposits WHERE account_id IN (39534, 31806) OR deposit_id <> 42950;loan_db What is the country code of the beneficiary on the bank branch id (64417, 63608)?;SELECT country_code FROM Beneficiary WHERE bank_branch_id IN (64417, 63608);transactions_db What is the client_id of the loan with an interest greater than 21 and a client_id less than 90363?;SELECT client_id FROM Loans WHERE NOT interest <> 21 AND client_id <> 90363;loan_db What is the branch identification of the counterparty bank when the counterparty donor ID is 91454?;SELECT counterparty_bank_branch_id FROM Source WHERE counterparty_donor_id = 91454;transactions_db "What is the total number of transactions with a transaction amount smaller than 81058 or amount_currency like ""eur""?";"SELECT COUNT(transaction_id), primary_contract_id FROM Transactions WHERE transaction_amount < 81058 OR amount_currency LIKE ""EUR""";transactions_db "What is the name, account_id and total number of emails for the client with client_id of client_id when the last name is not different than Moore, or when the city > ""Cleveland"" group has the last_name?";"SELECT Clients.first_name, Accounts.account_id, COUNT(Clients.email) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE NOT Clients.last_name <> Moore OR Clients.city <> ""Cleveland"" GROUP BY Clients.last_name";loan_db What is the account_id of the deposit with a deposit_id of 66991?;SELECT account_id FROM Deposits WHERE deposit_id = 66991;loan_db What is the amount of currency, transaction amount for the transaction with beneficiary ID 74025 or product family code in (77164, 81241)?;SELECT amount_currency, transaction_amount FROM Transactions WHERE beneficiary_id = 74025 OR product_family_code IN (77164, 81241);transactions_db What is the client_id and timestamp_id of the transaction in (10954, 83847) with a primary contract-id?;SELECT client_id, timestamp_id FROM Transactions WHERE primary_contract_id IN (10954, 83847);transactions_db How many different primary contract numbers have a counterparty donor id different than 15305 or a counterparty bank branch id of 89968?;SELECT COUNT(primary_contract_id), client_id FROM Source WHERE counterparty_donor_id <> 15305 OR counterparty_bank_branch_id = 89968;transactions_db How many customers have a client_id different than 7930?;SELECT COUNT(account_id) FROM Accounts WHERE client_id <> 7930;loan_db What is the amount of deposits which are not (account_id in (20944, 28121) )?;SELECT amount FROM Deposits WHERE NOT(account_id IN (20944, 28121));loan_db What is the name, status, number of last name, year of birth of the client who joined the loan with the client ID of client_id when the email is different by gender?;"SELECT Clients.city, Loans.status, COUNT(Clients.last_name), Clients.year_of_birth FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.email <> ""ward.johnson@cs.ma"" GROUP BY Clients.gender";loan_db How many loans have a not budget of 123958?;SELECT COUNT(*) FROM Loans WHERE NOT budget = 123958;loan_db What is the unique client_ID of the client with a primary contract_id of 53911?;SELECT DISTINCT client_id FROM Source WHERE primary_contract_id = 53911;transactions_db What is the greatest(year) of the time with a day_number smaller than 22 or an hour_number larger than 20?;SELECT MAX(year) FROM Time WHERE day_number < 22 OR hour_number > 20;transactions_db How many transactions have a beneficiary_id of 59103 group by beneficiary_id?;SELECT COUNT(primary_contract_id), beneficiary_id FROM Transactions WHERE beneficiary_id = 59103 GROUP BY beneficiary_id;transactions_db "How many cities have a year of birth of 2004 and a gender that is different than ""Male""?";"SELECT COUNT(first_name), city FROM Clients WHERE year_of_birth = 2004 AND gender <> ""Male""";loan_db What is the Account_ID, city, total number of balances for the account_id of the client_id with a balance of 165479 and the Account_id of 8451 Group by account_id?;SELECT Accounts.account_id, Clients.city, COUNT(Accounts.type), Accounts.balance FROM Accounts JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.balance = 165479 AND Accounts.account_id = 8451 GROUP BY Accounts.account_id;loan_db What is the amount of currency, primary contract id, number of is_fraudulent transactions left, that has a transaction id of 63265 and primary contract id in (94089, 87490) group by primary contract id?;SELECT Transactions.amount_currency, Source.primary_contract_id, COUNT(Transactions.is_fraudulent), Transactions.transaction_id FROM Transactions LEFT JOIN Source ON Transactions.client_id = Source.client_id WHERE transaction_id = 63265 AND primary_contract_id IN (94089, 87490) GROUP BY primary_contract_id;transactions_db What is the primary contract id, the primary contract id, and the total amount of the currency for the transactions in the inner join source with the client id of client_id when is_fraudulent group has beneficiary id?;"SELECT Transactions.primary_contract_id, Source.primary_contract_id, COUNT(Transactions.amount_currency) FROM Transactions INNER JOIN Source ON Transactions.client_id = Source.client_id WHERE is_fraudulent = ""Yes"" GROUP BY beneficiary_id";transactions_db What is the client_id of the account with an account_id different than 97593?;SELECT client_id FROM Accounts WHERE account_id <> 97593;loan_db What is the beneficiary_id, country_code of the beneficiary with a country_code ('US', 'CA', 'DE', 'FR', 'LU')?;SELECT beneficiary_id, country_code FROM Beneficiary WHERE country_code IN ('US', 'CA', 'DE', 'FR', 'LU') OR beneficiary_id = 11679;transactions_db What is the timestamp_id, bank_branch_id and the total number of primary contract ids for the transaction on which the beneficiary joining a transaction id other than 74800 Group by client_id is?;SELECT Transactions.timestamp_id, Beneficiary.bank_branch_id, COUNT(Transactions.primary_contract_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE transaction_id <> 74800 GROUP BY client_id;transactions_db What is the unique source of deposits with account id in (38298, 31697)?;SELECT DISTINCT source FROM Deposits WHERE account_id IN (38298, 31697);loan_db How many loans have a budget different than 193911 and a loan id smaller than 70676?;SELECT COUNT(status), budget FROM Loans WHERE budget <> 193911 AND loan_id <> 70676;loan_db How many deposits have a deposit_id in 60213, 52204) or have an amount greater than 572190?;SELECT COUNT(source), deposit_id FROM Deposits WHERE deposit_id IN (60213, 52204) OR amount >= 572190;loan_db What is the transaction_amount, year and number of the beneficiary_id in the inner Join time of timestamp_id when the product_family_code in (60423, 9679) is or the transaction_amount is in between 55588 and 85574 by transaction_id group?;SELECT Transactions.transaction_amount, Time.year, COUNT(Transactions.beneficiary_id) FROM Transactions INNER JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code IN (60423, 9679) OR transaction_amount BETWEEN 55588 AND 85574 GROUP BY transaction_id;transactions_db "What is the name, gender, and country of the client with an email that is different than ""Ma"" group by last_name?";"SELECT Clients.email, Accounts.type, COUNT(Clients.gender), Clients.city FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.email <> ""roberts.williams@cs.ma"" GROUP BY Clients.last_name";loan_db What is the unique is_fraudulent, day_name, number of the primary contract id for transactions left that join time on timestamp id of timestamp id for the client id in the group (77424, 87483)?;SELECT DISTINCT Transactions.is_fraudulent, Time.day_name, COUNT(Transactions.primary_contract_id) FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE client_id IN (77424, 87483) GROUP BY beneficiary_id;transactions_db "How many countries are listed under the beneficiary name "" Luxembourg"" or bank_branch_id (98840, 98532)?";"SELECT COUNT(country_code) FROM Beneficiary WHERE country_name = ""Luxembourg"" OR bank_branch_id IN (98840, 98532)";transactions_db "How many countries are different from ""UK"" or have a country name in ('Luxembourg', 'France', 'Canada')?";"SELECT COUNT(country_code), beneficiary_id FROM Beneficiary WHERE country_code <> ""UK"" OR country_name IN ('Luxembourg', 'France', 'Canada')";transactions_db What is the transaction_id, day_number, total number of product_family_codes, primary contract ID for the transaction that has a time on the timestamp_id of timestamp_id for the group 77312 by transaction_id?;SELECT Transactions.transaction_id, Time.day_number, COUNT(Transactions.product_family_code), Transactions.primary_contract_id FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code = 77312 GROUP BY transaction_id;transactions_db How many timestamp_IDs are there for transactions with transaction_id of 28513 GROUP by is_fraudulent?;SELECT COUNT(timestamp_id) FROM Transactions WHERE transaction_id = 28513 GROUP BY is_fraudulent;transactions_db "How many times was the day "" Saturday"" named in a year bigger than 2019?";"SELECT COUNT(day_name), hour_number FROM Time WHERE day_name = ""Saturday"" OR year >= 2019";transactions_db What is balance, gender, total number of account - id, type for client - id when the account - id is different by type from 49575 group?;SELECT Accounts.balance, Clients.gender, COUNT(Accounts.account_id), Accounts.type FROM Accounts INNER JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.account_id <> 49575 GROUP BY Accounts.type;loan_db What is the primary contract ID for the counterparty bank branch ID in (92395, 95602) or the primary contract ID (67743, 86788)?;SELECT primary_contract_id FROM Source WHERE counterparty_bank_branch_id IN (92395, 95602) OR primary_contract_id IN (67743, 86788);transactions_db How many loans have a loan_id of 43409 or a duration of 2?;SELECT COUNT(client_id), status FROM Loans WHERE loan_id = 43409 OR duration = 2;loan_db What is the loan_id of the loan with 11 interest and not (loan_id in (84920, 97478))?;SELECT loan_id FROM Loans WHERE interest = 11 AND NOT(loan_id IN (84920, 97478));loan_db How many transactions have a beneficiary_id different than 90699?;SELECT COUNT(beneficiary_id), product_family_code FROM Transactions WHERE beneficiary_id <> 90699;transactions_db What is the client_id, type of account with a balance different than 963232 or account id smaller than 95825?;SELECT client_id, type FROM Accounts WHERE balance <> 963232 OR account_id <> 95825;loan_db What is the counterparty_donor_id, counterparty_bank_branch_id when the counterparty_bank_branch-id is different from 84594 or when the client_id is not (16057, 88019)?;SELECT counterparty_donor_id, counterparty_bank_branch_id FROM Source WHERE counterparty_bank_branch_id <> 84594 OR client_id IN (16057, 88019);transactions_db What is the product family code, bank branch id, and the total number of timestamps ids for transactions left on beneficiary-id of the beneficiary-id when not(client id in (49043, 50146)) group for the transaction amount?;SELECT Transactions.product_family_code, Beneficiary.bank_branch_id, COUNT(Transactions.timestamp_id) FROM Transactions LEFT JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE NOT(client_id IN (49043, 50146)) GROUP BY transaction_amount;transactions_db "What is the earliest year that has a day-name like ""tuesday""?";"SELECT MIN(year) FROM Time WHERE day_name LIKE ""Tuesday""";transactions_db "What is the type, budget, total number of account_ids for the account with a type like ""saving account"" and a balance of 894155 by type?";"SELECT Accounts.type, Loans.budget, COUNT(Accounts.account_id) FROM Accounts JOIN Loans ON Accounts.client_id = Loans.client_id WHERE Accounts.type LIKE ""Saving account"" AND Accounts.balance = 894155 GROUP BY Accounts.type";loan_db What is the total number of counterparty_donor_ids when the primary contract id is 60664 and when the counterparty-bank branch id is different than 56442?;SELECT COUNT(counterparty_donor_id) FROM Source WHERE primary_contract_id = 60664 AND counterparty_bank_branch_id <> 56442;transactions_db "How many deposits are there for the account ID of the account with a source like ""Cash"" and a deposit ID of 78383 Group by source?";"SELECT COUNT(*) FROM Deposits INNER JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.source LIKE ""Cash"" AND Deposits.deposit_id = 78383 GROUP BY Deposits.source";loan_db How many customers have a primary contract ID of 94202 or a counterparty_donor id in (72683, 84058)?;SELECT COUNT(client_id) FROM Source WHERE primary_contract_id = 94202 OR counterparty_donor_id IN (72683, 84058);transactions_db "What week number has 14 as the hour number or a day name different than the ""Sunday""?";"SELECT week_number FROM Time WHERE hour_number = 14 OR day_name <> ""Sunday""";transactions_db What is the source, type, total deposit_id, amount of the account with deposit_id of 55039 group by deposit_id left?;SELECT Deposits.source, Accounts.type, COUNT(Deposits.deposit_id), Deposits.amount FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id = 55039 GROUP BY Deposits.deposit_id;loan_db What is the source, type and total number of deposit_ids for the account_id of the deposit_id in the (96101, 86054) group by amount?;SELECT Deposits.source, Accounts.type, COUNT(Deposits.deposit_id) FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.deposit_id IN (96101, 86054) GROUP BY Deposits.amount;loan_db What is the transaction_id, counterparty_donor_id, number of beneficiary_id, client_id of the transaction whose beneficiary_id is 68577 product family code?;SELECT Transactions.transaction_id, Source.counterparty_donor_id, COUNT(Transactions.beneficiary_id), Transactions.client_id FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE beneficiary_id = 68577 GROUP BY product_family_code;transactions_db "What is the transaction_id, country_code and total number of product family codes for the transaction involving a beneficiary with a amount_currency differing from the ""JPY"" group by transaction_amount?";"SELECT Transactions.transaction_id, Beneficiary.country_code, COUNT(Transactions.product_family_code) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency <> ""JPY"" GROUP BY transaction_amount";transactions_db How many accounts have a balance larger than 167327?;SELECT COUNT(account_id), type FROM Accounts WHERE balance > 167327;loan_db "What is what client is when email is different than ""Ma""?";"SELECT * FROM Clients WHERE email <> ""williams.williams@cs.ma""";loan_db What is the gender, client_id of the client with a year of birth before 1994 or a client-id that is different than 14018?;SELECT gender, client_id FROM Clients WHERE year_of_birth < 1994 OR client_id <> 14018;loan_db What is the loan_id, account_id, total number of (last), the budget left for loan on client_id of client_id, when loan_id (94552, 64739) is listed by status?;SELECT Loans.loan_id, Accounts.account_id, COUNT(Loans.duration), Loans.budget FROM Loans LEFT JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.loan_id IN (94552, 64739) GROUP BY Loans.status;loan_db What is the unique number of bank branch ID, beneficiary id of the beneficiary in ('england', 'belgium', 'usa', 'FRANCE', 'GERMANY') and a country code in ('LU', 'US', 'DE', 'UK', 'FR', 'CA')?;SELECT DISTINCT COUNT(bank_branch_id), beneficiary_id FROM Beneficiary WHERE country_name IN ('England', 'Belgium', 'USA', 'France', 'Germany') AND country_code IN ('LU', 'US', 'DE', 'UK', 'FR', 'CA');transactions_db What is the transaction_id when the transaction_id is different from 43946?;SELECT transaction_id, is_fraudulent FROM Transactions WHERE transaction_id <> 43946;transactions_db What is the transaction_amount, counterparty bank branch id, and the total number of is_fraudulent transactions left on a client id with beneficiary id in (41668, 33009) or primary contract id of the 82669 GROUP by transaction amount?;SELECT Transactions.transaction_amount, Source.counterparty_bank_branch_id, COUNT(Transactions.is_fraudulent) FROM Transactions LEFT JOIN Source ON Transactions.client_id = Source.client_id WHERE beneficiary_id IN (41668, 33009) OR primary_contract_id = 82669 GROUP BY transaction_amount;transactions_db "How many times is the status different than ""current"" and the interest by budget is less than 24 group?";"SELECT COUNT(*) FROM Loans INNER JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.status <> ""current"" AND Loans.interest < 24 GROUP BY Loans.budget";loan_db How many cities have a client_id (46069, 77964)?;SELECT COUNT(email), city FROM Clients WHERE client_id IN (46069, 77964);loan_db "How many customers have a first name like ""bell""?";"SELECT COUNT(client_id) FROM Clients WHERE first_name LIKE ""Bell""";loan_db What is the budget, balance, total loan ID number, duration for the loan with a status other than “overdue” and a loan ID of 67251 by duration?;"SELECT Loans.budget, Accounts.balance, COUNT(Loans.loan_id), Loans.duration FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.status <> ""overdue"" AND Loans.loan_id = 67251 GROUP BY Loans.duration";loan_db "What is the name, balance, total number of town, gender of client with an email of ""Mama"" or gender like ""female"" group in the city?";"SELECT Clients.last_name, Accounts.balance, COUNT(Clients.city), Clients.gender FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.email = ""cooper.johnson@cs.ma"" OR Clients.gender LIKE ""Female"" GROUP BY Clients.city";loan_db What is the status, account_id, total interest, duration of the loan with a duration greater than 20 and more than 25 grouped?;SELECT Loans.status, Accounts.account_id, COUNT(Loans.interest), Loans.duration FROM Loans INNER JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.duration > 20 AND Loans.interest > 25 GROUP BY Loans.interest;loan_db "What is the budget, type and interest on the loan in the internal join account with a client_id of client_id when the budget is 988967 or when the status of the loan is ""overdue"" group by loan_id?";"SELECT Loans.budget, Accounts.type, COUNT(Loans.interest) FROM Loans INNER JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.budget = 988967 OR Loans.status = ""overdue"" GROUP BY Loans.loan_id";loan_db What is the interest to finance loans that are not paid off?;SELECT interest FROM Loans WHERE NOT status <> paid off;loan_db How many deposits have an amount larger than 870485?;SELECT COUNT(account_id) FROM Deposits WHERE amount > 870485;loan_db What is the client_id of the transaction with a timestamp in (83974, 95623)?;SELECT client_id FROM Transactions WHERE timestamp_id IN (83974, 95623);transactions_db "What is the source of the deposit with a source of ""transaction"" or an amount different from 823149?";"SELECT source, account_id FROM Deposits WHERE source = ""Transaction"" OR amount <> 823149";loan_db What is the balance, amount and total number of clients_id with a client_id of 76424 Group by type?;SELECT Accounts.balance, Deposits.amount, COUNT(Accounts.client_id), Accounts.type FROM Accounts INNER JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.client_id = 76424 GROUP BY Accounts.type;loan_db What day has an hour number greater than 9 and a week number that is not between 4 and 7?;SELECT day_name FROM Time WHERE hour_number >= 9 AND NOT week_number BETWEEN 4 AND 7;transactions_db What is the deposit_id, balance, total(source), amount of the deposit in the account_id of the account_id when the amount is greater than 818180 Group by Deposit_id?;SELECT Deposits.deposit_id, Accounts.balance, COUNT(Deposits.source), Deposits.amount FROM Deposits INNER JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount > 818180 GROUP BY Deposits.deposit_id;loan_db "How many accounts have the type ""saving account""?";"SELECT COUNT(*) FROM Accounts WHERE type = ""Saving account""";loan_db What is the amount of currency, hour_number and number of beneficiary_id for the transaction that has a primary contract_id in the 73988, 26274 group by transaction_id?;SELECT Transactions.amount_currency, Time.hour_number, COUNT(Transactions.beneficiary_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE primary_contract_id IN (73988, 26274) GROUP BY transaction_id;transactions_db What is the counterparty bank branch id, primary contract id of the bank with a not counterparty donor id of 23130 or not counterparty bank branch id of 41596?;SELECT counterparty_bank_branch_id, primary_contract_id FROM Source WHERE NOT counterparty_donor_id = 23130 OR NOT counterparty_bank_branch_id = 41596;transactions_db What is the unique number of accounts with a balance bigger than 540141?;SELECT DISTINCT COUNT(client_id) FROM Accounts WHERE balance >= 540141;loan_db What is the type, balance of the account with a type in ('Loan account', 'Saving account' or 'Deposit account') or a client id of 46567?;SELECT type, balance FROM Accounts WHERE type IN ('Loan account', 'Saving account', 'Deposit account') OR client_id = 46567;loan_db "What is the total number of timestamp id, year for the week number between 1 and 3 or the days name ""Monday""?";"SELECT COUNT(timestamp_id), year FROM Time WHERE week_number BETWEEN 1 AND 3 OR day_name = ""Monday""";transactions_db What is the balance, first_name and total number of account ids for the group with a balance between 258888 and 842880 by value?;SELECT Accounts.balance, Clients.first_name, COUNT(Accounts.account_id) FROM Accounts INNER JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.balance BETWEEN 258888 AND 842880 GROUP BY Accounts.balance;loan_db How many accounts have a balance smaller than 574708?;SELECT COUNT(client_id) FROM Accounts WHERE balance < 574708;loan_db "What is the name of the client with a last name like ""Collins""?";"SELECT last_name, first_name FROM Clients WHERE last_name LIKE ""Collins""";loan_db "What is the timestamp_id, hour_number with a day_name that is different from ""Sunday""?";"SELECT timestamp_id, hour_number FROM Time WHERE day_name <> ""Sunday""";transactions_db What is the product_family_code, timestamp_id for the transaction with a product_family_code (27533, 33802)?;SELECT product_family_code, timestamp_id FROM Transactions WHERE product_family_code IN (27533, 33802);transactions_db What is the amount, type and total deposit_id of account with an amount less than 853013 or a deposit_id different than 64328 in value group?;SELECT Deposits.amount, Accounts.type, COUNT(Deposits.deposit_id), Deposits.source FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount <= 853013 OR Deposits.deposit_id <> 64328 GROUP BY Deposits.amount;loan_db What is the fraud amount for the transaction between 18259 and 82859?;SELECT is_fraudulent FROM Transactions WHERE transaction_amount BETWEEN 18259 AND 82859;transactions_db What is the client_id, counterparty bank branch id, number(is_fraudulent), beneficiary ID of the transaction whose transaction amount is 24432 and 78438 group by transaction amount?;SELECT Transactions.client_id, Source.counterparty_bank_branch_id, COUNT(Transactions.is_fraudulent), Transactions.beneficiary_id FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_amount BETWEEN 24432 AND 78438 GROUP BY transaction_amount;transactions_db What is the client_id, deposit_id, total(balance)) type of the account with a deposit_id of the account id, when the type is different by group than 88462?;SELECT Accounts.client_id, Deposits.deposit_id, COUNT(Accounts.balance), Accounts.type FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.type IN ('Saving account', 'Loan account') OR Accounts.client_id <> 88462 GROUP BY Accounts.type;loan_db How many transactions have a beneficiary_id of 97481?;SELECT COUNT(timestamp_id) FROM Transactions WHERE beneficiary_id = 97481;transactions_db What is the primary contract id if the counterparty_donor id is different than 89223 or the client_id (97758, 77086) is different?;SELECT primary_contract_id FROM Source WHERE counterparty_donor_id <> 89223 OR client_id IN (97758, 77086);transactions_db What is the budget, account_id and total interest for the loan with a status in ('overdue', 'current', 'paid off') group by duration?;SELECT Loans.budget, Accounts.account_id, COUNT(Loans.interest) FROM Loans JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.status IN ('overdue', 'current', 'paid off') GROUP BY Loans.duration;loan_db What is the country code and country name of the beneficiary whose branch ID is different than 88756?;SELECT country_code, country_name FROM Beneficiary WHERE bank_branch_id <> 88756;transactions_db How many customers have a primary contract ID in (52615, 38637) or a counterparty donor id in (52670, 74599)?;SELECT COUNT(client_id) FROM Source WHERE primary_contract_id IN (52615, 38637) OR counterparty_donor_id IN (52670, 74599);transactions_db What is the duration, type and total number of loan_ids left joining accounts on client_id of client_id when the interest is between 19 and 21 or the duration is different than 25 group by duration?;SELECT Loans.duration, Accounts.type, COUNT(Loans.loan_id) FROM Loans LEFT JOIN Accounts ON Loans.client_id = Accounts.client_id WHERE Loans.interest BETWEEN 19 AND 21 OR Loans.duration <> 25 GROUP BY Loans.duration;loan_db "What is the unique email, loan_id and total number of cities for the client with a first name that is different by gender than ""Hall"" groups?";"SELECT DISTINCT Clients.email, Loans.loan_id, COUNT(Clients.city) FROM Clients INNER JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.first_name <> ""Hall"" GROUP BY Clients.gender";loan_db What type of accounts have a type like a deposit account or a client_id of 96208?;"SELECT type FROM Accounts WHERE type LIKE ""Deposit account"" OR client_id = 96208";loan_db How many transactions have a client_id (83458, 69264)?;SELECT COUNT(transaction_id) FROM Transactions WHERE client_id IN (83458, 69264);transactions_db How many clients have a client_id of 96766?;SELECT COUNT(client_id), last_name FROM Clients WHERE client_id = 96766;loan_db What is the beneficiary_id of the transaction with a primary contract_id different from 21688?;SELECT beneficiary_id FROM Transactions WHERE primary_contract_id <> 21688;transactions_db What is the source of deposit_id for deposits with deposit_id in (68585, 80316) or account_id of 91015?;SELECT source, deposit_id FROM Deposits WHERE deposit_id IN (68585, 80316) OR account_id = 91015;loan_db "What is the unique number of the beneficiary with a country name different from ""Luxembourg"" and a country code of ""US""?";"SELECT DISTINCT COUNT(country_code), bank_branch_id FROM Beneficiary WHERE country_name <> ""Luxembourg"" AND country_code = ""US""";transactions_db What is the total number of account_ids for the account with a balance of 791137 or the account ID (60298, 75550)?;SELECT COUNT(account_id) FROM Accounts WHERE balance = 791137 OR account_id IN (60298, 75550);loan_db What is the sum of the day number with a week number smaller than 7 and an hour number less than 8?;SELECT SUM(day_number) FROM Time WHERE week_number < 7 AND hour_number <= 8;transactions_db What is the duration, budget of loan on a budget different than 739660?;SELECT duration, budget FROM Loans WHERE budget <> 739660;loan_db What is the source, client_id, total amount of deposits left. Join accounts on account_id of account ID with an amount of 340998 and deposit_id in (47069, 89791) group with deposit_id?;SELECT Deposits.source, Accounts.client_id, COUNT(Deposits.amount) FROM Deposits LEFT JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount = 340998 AND Deposits.deposit_id IN (47069, 89791) GROUP BY Deposits.deposit_id;loan_db What is the primary contract id, day_name, and total number of client ids for transactions left with a time on timestamp_id of timestamp_id, if the transaction amount is less than 97307 or when the beneficiary id is different by client_id than 21206 group?;SELECT Transactions.primary_contract_id, Time.day_name, COUNT(Transactions.client_id) FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_amount < 97307 OR beneficiary_id <> 21206 GROUP BY client_id;transactions_db What is the balance, amount and total number of client-ids for the account left that has a balance of 634840 and 898429 groups by type?;SELECT Accounts.balance, Deposits.amount, COUNT(Accounts.client_id) FROM Accounts LEFT JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.balance BETWEEN 634840 AND 898429 GROUP BY Accounts.type;loan_db What is the primary contract id, hour number, total number of product family code, amount_currency for the transaction that has a transaction amount between 3200 and 59883 by transaction amount?;SELECT Transactions.primary_contract_id, Time.hour_number, COUNT(Transactions.product_family_code), Transactions.amount_currency FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE transaction_amount BETWEEN 3200 AND 59883 GROUP BY transaction_amount;transactions_db What is the account_id of the account with a balance exceeding 656398 and a 'deposit account' or a 'loan account'?;SELECT account_id FROM Accounts WHERE balance > 656398 AND type IN ('Deposit account', 'Loan account');loan_db What is the transaction_amount, client_id, and total number of client_ids for the transaction left join source on primary contract-id of primary contract-id when the transaction-id is different by transaction_amount from 95680 GROUP?;SELECT Transactions.transaction_amount, Source.client_id, COUNT(Transactions.client_id) FROM Transactions LEFT JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE transaction_id <> 95680 GROUP BY transaction_amount;transactions_db What is the unique client-ID and counterparty_donor_id of the client-ID (90811, 87835)?;SELECT DISTINCT client_id, counterparty_donor_id FROM Source WHERE client_id IN (90811, 87835);transactions_db What is the hour number of the time on a timestamp with 6256, 4666 -?;SELECT hour_number FROM Time WHERE timestamp_id IN (6256, 4666);transactions_db What is the total number of transactions with a product_family_code in (99504, 99679) and an amount_currency that is different than in the NZD?;"SELECT COUNT(client_id), timestamp_id FROM Transactions WHERE product_family_code IN (99504, 99679) AND amount_currency <> ""NZD""";transactions_db What is the client_id of the loan with a budget of 856053 or a client_id in (21922, 29594)?;SELECT client_id FROM Loans WHERE budget = 856053 OR client_id IN (21922, 29594);loan_db What is the balance, account_id of the account with a balance less than 895334 or an account ID in (8242, 35779)?;SELECT balance, account_id FROM Accounts WHERE balance < 895334 OR account_id IN (8242, 35779);loan_db What is the account_id, type of account with account number 90840 or client number different from 93779?;SELECT account_id, type FROM Accounts WHERE account_id = 90840 OR client_id <> 93779;loan_db What is the deposit_id of the deposit with a deposit_id of 99975 or an amount of 894064?;SELECT deposit_id FROM Deposits WHERE deposit_id = 99975 OR amount = 894064;loan_db What is the name of the email and year of birth of the client with a client_id different from 95560?;SELECT email, year_of_birth FROM Clients WHERE client_id <> 95560;loan_db What is the counterparty bank branch id, counterparty donor id when the counterparty donor id is not (counterparty-donor_id in (83634, 87048)) or primary contract id is (71937, 34034)?;SELECT counterparty_bank_branch_id, counterparty_donor_id FROM Source WHERE NOT(counterparty_donor_id IN (83634, 87048)) OR primary_contract_id IN (71937, 34034);transactions_db What is the beneficiary_id, day_number, and total number of product_family_codes left for the transaction that has a time on timestamp_id of timestamp_id when not beneficiary_id is 10821 and when transaction_amount is under 81212 by is_fraudulent?;SELECT Transactions.beneficiary_id, Time.day_number, COUNT(Transactions.product_family_code) FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE NOT beneficiary_id = 10821 AND transaction_amount < 81212 GROUP BY is_fraudulent;transactions_db What is the timestamp_id of the time with a day value different than 5 or a timestamp_id smaller than 22187?;SELECT timestamp_id FROM Time WHERE day_number <> 5 OR timestamp_id <> 22187;transactions_db "How many clients have gender of ""female"" and a first name in ('Parker', 'Peterson', 'Anderson')?";"SELECT COUNT(client_id), email FROM Clients WHERE gender LIKE ""Female"" AND first_name IN ('Parker', 'Peterson', 'Anderson')";loan_db What is the name of the client with a first-name in ('Howard', 'Ramirez') or a year-of-birth between 1994 and 2007?;SELECT * FROM Clients WHERE first_name IN ('Howard', 'Ramirez') OR year_of_birth BETWEEN 1994 AND 2007;loan_db "What is the day number, hour number when the day name is different from ""Monday"" or the time stamp id (63575, 88922)?";"SELECT day_number, hour_number FROM Time WHERE day_name <> ""Monday"" OR timestamp_id IN (63575, 88922)";transactions_db What is the primary contract id, the primary contract id, and the total number of product family codes for the transaction with a client id when the primary contract id is in the (10502, 80866) group by beneficiary id?;SELECT Transactions.primary_contract_id, Source.primary_contract_id, COUNT(Transactions.product_family_code) FROM Transactions JOIN Source ON Transactions.client_id = Source.client_id WHERE primary_contract_id IN (10502, 80866) GROUP BY beneficiary_id;transactions_db What is the beneficiary_id, bank branch - id of the beneficiary with a country name in ('Luxembourg', 'USA', 'Germany', 'Belgium') or bank branch - id (72199, 76314)?;SELECT beneficiary_id, bank_branch_id FROM Beneficiary WHERE country_name IN ('Luxembourg', 'USA', 'Germany', 'Belgium') OR bank_branch_id IN (72199, 76314);transactions_db What is the client_id of the client with an email in (ma', ma')?;SELECT client_id FROM Clients WHERE email IN ('jones.williams@cs.ma', 'howard.smith@cs.ma');loan_db What is the beneficiary_id of the beneficiary with a beneficiary_id in (57354, 61076)?;SELECT beneficiary_id FROM Beneficiary WHERE beneficiary_id IN (57354, 61076);transactions_db What week number has a day number less than 25?;SELECT week_number FROM Time WHERE NOT day_number < 25;transactions_db How many loans have a status ('current', 'paid') or client_id different than 88015?;SELECT COUNT(*) FROM Loans WHERE status IN ('current', 'paid off') OR client_id <> 88015;loan_db What day has a week number larger than 7 and an hour number larger than 10?;SELECT day_name FROM Time WHERE week_number >= 7 AND NOT hour_number >= 10;transactions_db What is the total balance of the account with a client id different than 49045 and a type in ('Loan account', 'Deposit account')?;SELECT COUNT(type), balance FROM Accounts WHERE client_id <> 49045 AND type IN ('Loan account', 'Deposit account');loan_db What is the timestamp_id, bank_branch_id, total number of the product family code, transaction_id for the transaction that merges beneficiary with beneficiary_id of beneficiary_id when amount_currency is like the transaction amount Groups;"SELECT Transactions.timestamp_id, Beneficiary.bank_branch_id, COUNT(Transactions.product_family_code), Transactions.transaction_id FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency LIKE ""HKD"" GROUP BY transaction_amount";transactions_db What type of account has different account_id than 98070?;SELECT type FROM Accounts WHERE account_id <> 98070;loan_db "How many beneficiaries have a country code ('FR', 'BE', 'CA', 'LU', 'DE', 'US') or a country name like ""USA""?";"SELECT COUNT(beneficiary_id) FROM Beneficiary WHERE country_code IN ('FR', 'BE', 'CA', 'LU', 'DE', 'US') OR country_name LIKE ""USA""";transactions_db "What is the city, budget, gender, email of the client with an email like ""ma"" and first name in the group ('Rivera', 'Kelly', 'Hughes') by the year of birth?";"SELECT Clients.city, Loans.budget, COUNT(Clients.gender), Clients.email FROM Clients JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.email LIKE ""smith.williams@cs.ma"" AND Clients.first_name IN ('Rivera', 'Kelly', 'Hughes') GROUP BY Clients.year_of_birth";loan_db How many deposits have a source different than the currency and an account_id smaller than 90126 group, by deposit_id?;"SELECT COUNT(*) FROM Deposits WHERE source <> ""Cash"" AND account_id <> 90126 GROUP BY deposit_id";loan_db What is the balance, amount, total number of types, client_id of the account with a client_id of 22367 or a balance greater than 135628 by balance?;SELECT Accounts.balance, Deposits.amount, COUNT(Accounts.type), Accounts.client_id FROM Accounts JOIN Deposits ON Accounts.account_id = Deposits.account_id WHERE Accounts.client_id = 22367 OR Accounts.balance > 135628 GROUP BY Accounts.balance;loan_db "How many countries codes, bank_branch ids are there for the beneficiary with a country code like ""DE"" and a beneficiary-id that is different from 93230?";"SELECT COUNT(country_code), bank_branch_id FROM Beneficiary WHERE country_code LIKE ""DE"" AND NOT beneficiary_id <> 93230";transactions_db What is the sum of the day number and the day name of the time with an hour number different from 18 and a year smaller than 2012 Group by timestamp_id?;SELECT SUM(day_number), day_name FROM Time WHERE hour_number <> 18 AND year < 2012 GROUP BY timestamp_id;transactions_db What is the budget, client_id of the loan with a duration different than 27 or with a budget smaller than 238237?;SELECT budget, client_id FROM Loans WHERE duration <> 27 OR budget <= 238237;loan_db "What is the unique type of account with account_id in (93977, 94307) or a type of ""deposit account""?";"SELECT DISTINCT type FROM Accounts WHERE account_id IN (93977, 94307) OR type = ""Deposit account""";loan_db What is the name and client_id of the client in the city of ('Albuquerque', 'Indianapolis') or not like ma?;SELECT first_name, client_id FROM Clients WHERE city IN ('Albuquerque', 'Indianapolis') OR NOT email LIKE murphy.smith@cs.ma;loan_db What is the amount of currency, timestamp - id for transactions with a timestamp - ID different from 20597 or client - ID in (79091, 94763)?;SELECT amount_currency, timestamp_id FROM Transactions WHERE timestamp_id <> 20597 OR client_id IN (79091, 94763);transactions_db What is the unique interest, last name, number (duration), status of the loan left with a loan - ID different than 89552 and an interest value smaller than 12 by the group?;SELECT DISTINCT Loans.interest, Clients.last_name, COUNT(Loans.duration), Loans.status FROM Loans LEFT JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.loan_id <> 89552 AND Loans.interest <> 12 GROUP BY Loans.loan_id;loan_db What is the interest, loan_id for loans with a client_id of 74525?;SELECT interest, loan_id FROM Loans WHERE client_id = 74525;loan_db What is the client_id and transaction_id of the transaction with a transaction_id different than 93010?;SELECT client_id, transaction_id FROM Transactions WHERE transaction_id <> 93010;transactions_db What is the total number of transactions with a beneficiary_id of 89061 and a primary contract_id of 86651?;SELECT COUNT(amount_currency), transaction_id FROM Transactions WHERE beneficiary_id = 86651 AND primary_contract_id = 89061;transactions_db "What is the gender, city of the client with an email like ""Ma""?";"SELECT gender, city FROM Clients WHERE email LIKE ""cook.smith@cs.ma""";loan_db "What is the unique type, email and total balance of the accounts left with clients on client_id of client_id when type is ""Loan account"" by type group?";"SELECT DISTINCT Accounts.type, Clients.email, COUNT(Accounts.balance) FROM Accounts LEFT JOIN Clients ON Accounts.client_id = Clients.client_id WHERE Accounts.type LIKE ""Loan account"" GROUP BY Accounts.type";loan_db How many transactions have a transaction amount smaller than 78135?;SELECT COUNT(beneficiary_id) FROM Transactions WHERE transaction_amount < 78135;transactions_db What is the earliest year, day number that has a week number different than 3, and an hour number of 22?;SELECT MIN(year), day_number FROM Time WHERE NOT week_number <> 3 AND hour_number = 22;transactions_db "What is the average balance of accounts with a type like a ""saving account"" and a balance less than 405220?";"SELECT AVG(balance) FROM Accounts WHERE type LIKE ""Saving account"" AND balance <= 405220";loan_db "What is the unique city, account_id, number (year_of_birth), gender of the client with a gender in ('Male', 'Female') and an email that is different by gender from the ""Ma"" group?";"SELECT DISTINCT Clients.city, Accounts.account_id, COUNT(Clients.year_of_birth), Clients.gender FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.gender IN ('Male', 'Female') AND Clients.email <> ""thompson.johnson@cs.ma"" GROUP BY Clients.gender";loan_db What is the account_id and deposit_id of deposit with a deposit_id different from 44316?;SELECT account_id, deposit_id FROM Deposits WHERE deposit_id <> 44316;loan_db What is the unique year of birth, account id, number(email), last_name of the client with the client id of the client in the city in the ('Buffalo', 'Columbus') group by last_name?;SELECT DISTINCT Clients.year_of_birth, Accounts.account_id, COUNT(Clients.email), Clients.last_name FROM Clients INNER JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.city IN ('Buffalo', 'Columbus') GROUP BY Clients.last_name;loan_db What is the name of the beneficiary with a beneficiary_id in 79628, 78702 or a bank_branch_id different than 73205?;SELECT country_name FROM Beneficiary WHERE beneficiary_id IN (79628, 78702) OR bank_branch_id <> 73205;transactions_db What is the transaction amount of the transaction on the beneficiary_id 5287?;SELECT transaction_amount FROM Transactions WHERE beneficiary_id = 5287;transactions_db What is the transaction_id, country name and total number of client_ids for the beneficiary with a product_family_code in 86506, 34830 or amount_currency in ('GBP', 'HKD', 'CHF', 'AUD', 'CAD', 'JPY', 'CNH', 'USD', 'EUR') group?;SELECT Transactions.transaction_id, Beneficiary.country_name, COUNT(Transactions.client_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE product_family_code IN (86506, 34830) OR amount_currency IN ('GBP', 'HKD', 'CHF', 'AUD', 'CAD', 'JPY', 'CNH', 'USD', 'EUR') GROUP BY product_family_code;transactions_db What is the sum of transactions with a transaction amount between 80002 and 95743 and a product family code in the (94007, 91349) group by transaction_id?;SELECT SUM(transaction_amount), is_fraudulent FROM Transactions WHERE transaction_amount BETWEEN 80002 AND 95743 AND product_family_code IN (94007, 91349) GROUP BY transaction_id;transactions_db What is the total number of primary contract IDs when counterparty bank branch ID is different than 73472 and the counterparty donor ID is smaller than 86062?;SELECT COUNT(primary_contract_id) FROM Source WHERE counterparty_bank_branch_id <> 73472 AND counterparty_donor_id <> 86062;transactions_db "What is the city, balance and total number of emails for the client with the client_id of the client_id when the last name is different from the group "" Torres"" by first name?";"SELECT Clients.city, Accounts.balance, COUNT(Clients.email) FROM Clients JOIN Accounts ON Clients.client_id = Accounts.client_id WHERE Clients.last_name <> ""Torres"" GROUP BY Clients.first_name";loan_db "What is the beneficiary_id and the transaction amount of transactions where ""no"" is found?";"SELECT beneficiary_id, transaction_amount FROM Transactions WHERE is_fraudulent = ""No""";transactions_db What is the unique beneficiary-ID of the beneficiary with a country code like LU and a beneficiary-ID of 14477?;"SELECT DISTINCT beneficiary_id FROM Beneficiary WHERE country_code LIKE ""LU"" AND beneficiary_id = 14477";transactions_db What is the beneficiary_id, counterparty_donor_id, total transaction_amount, product family code for the left transaction join on client_id of client_id when transaction_amount is less than 47983 or when is_fraudulent is different of primary contract-id;"SELECT Transactions.beneficiary_id, Source.counterparty_donor_id, COUNT(Transactions.transaction_amount), Transactions.product_family_code FROM Transactions LEFT JOIN Source ON Transactions.client_id = Source.client_id WHERE transaction_amount <= 47983 OR is_fraudulent <> ""Yes"" GROUP BY primary_contract_id";transactions_db What is the loan_id, first name, total (budget), interest for 65735 loan id and a duration of higher than 19 groups by the loan id?;SELECT Loans.loan_id, Clients.first_name, COUNT(Loans.budget), Loans.interest FROM Loans INNER JOIN Clients ON Loans.client_id = Clients.client_id WHERE Loans.loan_id = 65735 AND Loans.duration > 19 GROUP BY Loans.loan_id;loan_db What is the is_fraudulent, hour number, total amount of currency for the transactions that have a time on timestamp_id on timestamp_id, when product_family_code is different by transaction_id from 50599 group?;SELECT Transactions.is_fraudulent, Time.hour_number, COUNT(Transactions.amount_currency) FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code <> 50599 GROUP BY transaction_id;transactions_db How many customers have a client_id in 62828, 97002)?;SELECT COUNT(client_id) FROM Accounts WHERE client_id IN (62828, 97002);loan_db How many clients have gender in ('male', 'female') or a client id (49480, 60728)?;SELECT COUNT(*) FROM Clients WHERE gender IN ('Male', 'Female') OR client_id IN (49480, 60728);loan_db What is the counterparty_donor_id, client_id when the counterparty bank branch id is different from 78363?;SELECT counterparty_donor_id, client_id FROM Source WHERE counterparty_bank_branch_id <> 78363;transactions_db How many countries have a beneficiary id different than 55762 and a bank branch id of 14246?;SELECT COUNT(country_name), bank_branch_id FROM Beneficiary WHERE beneficiary_id <> 55762 AND bank_branch_id = 14246;transactions_db What is the name, status and number of the year of birth of the client with a client_id of the client_id if the year of birth is not greater than 2005 group via email?;SELECT Clients.email, Loans.status, COUNT(Clients.year_of_birth) FROM Clients INNER JOIN Loans ON Clients.client_id = Loans.client_id WHERE NOT Clients.year_of_birth >= 2005 GROUP BY Clients.email;loan_db What is the account_id of the account with a client_id of 92443 or an account_id of 47836?;SELECT account_id FROM Accounts WHERE client_id = 92443 OR account_id = 47836;loan_db What is the sum of the duration of the loan with a status in (current, 'overdue') and a budget over 750678?;SELECT SUM(budget), duration FROM Loans WHERE status IN ('current', 'overdue') AND budget >= 750678;loan_db How many accounts have a balance of less than 791010?;SELECT COUNT(account_id) FROM Accounts WHERE NOT balance > 791010;loan_db What is the amount, client_id, total(deposit_id), source of the deposit account with an amount of 871311 by amount?;SELECT Deposits.amount, Accounts.client_id, COUNT(Deposits.deposit_id), Deposits.source FROM Deposits JOIN Accounts ON Deposits.account_id = Accounts.account_id WHERE Deposits.amount = 871311 GROUP BY Deposits.amount;loan_db How many cities have a year of birth of 1972?;SELECT COUNT(city), email FROM Clients WHERE NOT year_of_birth = 1972;loan_db What is the unique hour-number of the episode with a week-number less than 5 or a month-number between 4 and 10?;SELECT DISTINCT hour_number FROM Time WHERE week_number < 5 OR month_number BETWEEN 4 AND 10;transactions_db "What is the account_id of the account that is different from ""deposit account""?";"SELECT * FROM Accounts WHERE account_id = 67167 OR type <> ""Deposit account""";loan_db What is the transaction_id, bank branch_id, total number of timestamps-digit, product family code for the transaction that joins beneficiary with a primary contract id other than 70130 group by timestamp_id?;SELECT Transactions.transaction_id, Beneficiary.bank_branch_id, COUNT(Transactions.timestamp_id), Transactions.product_family_code FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE primary_contract_id <> 70130 GROUP BY timestamp_id;transactions_db How many customers have a client_id of 5976 group by type?;SELECT COUNT(balance), account_id FROM Accounts WHERE client_id = 5976 GROUP BY type;loan_db What is the primary contract id, the country_name and the total value of currency for the transaction joining beneficiary with a not timestamp id of 58195 or a primary contract id of 77554 group by product family code?;SELECT Transactions.primary_contract_id, Beneficiary.country_name, COUNT(Transactions.amount_currency) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE NOT timestamp_id = 58195 OR primary_contract_id = 77554 GROUP BY product_family_code;transactions_db "What is the name of the client with a gender like ""female"" or birth year before 1958?";"SELECT last_name, year_of_birth FROM Clients WHERE gender LIKE ""Female"" OR year_of_birth < 1958";loan_db What is the counterparty_donor_id of the bank with a counterparty bank branch-id (45457, 93302) or a primary contract-id different than 75554?;SELECT counterparty_donor_id FROM Source WHERE counterparty_bank_branch_id IN (45457, 93302) OR primary_contract_id <> 75554;transactions_db What is the unique amount_currency, client_id, number(transaction_amount), beneficiary_id of the transaction whose source is primary_contract_id, when the client_id is 77368 group by timestamp_id?;SELECT DISTINCT Transactions.amount_currency, Source.client_id, COUNT(Transactions.transaction_amount), Transactions.beneficiary_id FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE client_id = 77368 GROUP BY timestamp_id;transactions_db What is the transaction_id, day_name, total number of product family code, amount_currency for the transaction that has a time on timestamp_id of timestamp_id for the client_id in the group (50527, 32912) by transaction_id?;SELECT Transactions.transaction_id, Time.day_name, COUNT(Transactions.product_family_code), Transactions.amount_currency FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE client_id IN (50527, 32912) GROUP BY transaction_id;transactions_db "What is the country name of the beneficiary with a country code of ""BE"" or a country name that is different from ""France""?";"SELECT country_name FROM Beneficiary WHERE country_code = ""BE"" OR country_name <> ""France""";transactions_db How many loans have not(client_id in (95941, 99462))?;SELECT COUNT(interest), status FROM Loans WHERE NOT(client_id IN (95941, 99462));loan_db What is the name, loan_id, gender of the client with a year_of_birth of 1972 group on a loan?;SELECT Clients.city, Loans.loan_id, COUNT(Clients.gender) FROM Clients LEFT JOIN Loans ON Clients.client_id = Loans.client_id WHERE Clients.year_of_birth = 1972 GROUP BY Clients.first_name;loan_db "What is the deposit_id for deposit_id in (75219, 79239) and the source is ""Banknote""";"SELECT * FROM Deposits WHERE source LIKE ""Cash"" AND deposit_id IN (75219, 79239)";loan_db What is the primary contract ID for the transaction with a primary contract ID (85470, 91616)?;SELECT primary_contract_id FROM Transactions WHERE primary_contract_id IN (85470, 91616);transactions_db How many loans have a duration larger than 12 by budget?;SELECT COUNT(client_id) FROM Loans WHERE duration > 12 GROUP BY budget;loan_db How many times is the client_id in 63318, 44635) or counterparty_donor_id 52522?;SELECT COUNT(counterparty_bank_branch_id), counterparty_donor_id FROM Source WHERE client_id IN (63318, 44635) OR counterparty_donor_id = 52522;transactions_db What is the country name, bank branch ID of the beneficiary with country name of « Canada » and not (country code in ('LU', 'US', 'DE', 'FR', 'UK', 'BE')?;"SELECT country_name, bank_branch_id FROM Beneficiary WHERE country_name = ""Canada"" AND NOT(country_code IN ('LU', 'US', 'CA', 'DE', 'FR', 'UK', 'BE'))";transactions_db What is the client_id, client_id, and the total value of currency for the transaction that has a source of primary_contract-id of primary_contract_id when NOT is_fraudulent by transaction_amount?;SELECT Transactions.client_id, Source.client_id, COUNT(Transactions.amount_currency) FROM Transactions JOIN Source ON Transactions.primary_contract_id = Source.primary_contract_id WHERE NOT is_fraudulent <> No GROUP BY transaction_amount;transactions_db What is the unique amount of deposit_id for the deposit in ('check', 'transaction', 'cash') and account_id in (95576, 96223) by account_id group?;SELECT DISTINCT AVG(amount), deposit_id FROM Deposits WHERE source IN ('Check', 'Transaction', 'Cash') AND account_id IN (95576, 96223) GROUP BY account_id;loan_db How many accounts have an account_id different than 58987?;SELECT COUNT(*) FROM Accounts WHERE account_id <> 58987;loan_db "What is the name of the client with a different gender than ""male""?";"SELECT last_name, first_name FROM Clients WHERE gender <> ""Male""";loan_db "What is the unique number of accounts with a type of ""Credit account"" and an account_id of 45418?";"SELECT DISTINCT COUNT(type) FROM Accounts WHERE type = ""Loan account"" AND account_id = 45418";loan_db What is the unique deposit_ID amount if the deposit amount is not more than 984695?;SELECT DISTINCT COUNT(deposit_id), amount FROM Deposits WHERE NOT amount > 984695;loan_db What is the transaction_id of the transaction with a transaction_id of 97622?;SELECT transaction_id FROM Transactions WHERE transaction_id = 97622;transactions_db What is the deposit_id of the deposit with an amount greater than 538345?;SELECT * FROM Deposits WHERE deposit_id <> 93504 AND amount > 538345;loan_db "What is the timestamp_id, country_name and transaction_id of the transaction involving a amount_currency like the ""USD"" group by transaction_amount?";"SELECT Transactions.timestamp_id, Beneficiary.country_name, COUNT(Transactions.transaction_id) FROM Transactions JOIN Beneficiary ON Transactions.beneficiary_id = Beneficiary.beneficiary_id WHERE amount_currency LIKE ""USD"" GROUP BY transaction_amount";transactions_db What is the amount of currency, day_name and the total number of primary contract ids for the transactions left which have a time on timestamp_id of timestamp_id when the product_family_code is different from 60542 or when the transaction_amount is 87210 group by beneficiary_id?;SELECT Transactions.amount_currency, Time.day_name, COUNT(Transactions.primary_contract_id) FROM Transactions LEFT JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE product_family_code <> 60542 OR transaction_amount = 87210 GROUP BY beneficiary_id;transactions_db "What is the transaction amount, day_number and client_id of the transaction that has a time on the timestamp_id of the timestamp_id, when ""no"" is the group with the transaction_id?";"SELECT Transactions.transaction_amount, Time.day_number, COUNT(Transactions.client_id) FROM Transactions JOIN Time ON Transactions.timestamp_id = Time.timestamp_id WHERE is_fraudulent = ""No"" GROUP BY transaction_id";transactions_db