Dataset Viewer
Auto-converted to Parquet Duplicate
system
stringclasses
1 value
user
stringlengths
15
120
assistant
stringlengths
26
409
Convert the user's request into SQL.
How much money did I spend on dining out last month?
SELECT SUM(amount) FROM transactions WHERE txn_type = 'DEBIT' AND category ILIKE '%dining%' AND transaction_date >= DATE '2025-04-01' AND transaction_date <= DATE '2025-04-30'
Convert the user's request into SQL.
Count all transactions where the source was HDFC bank.
SELECT COUNT(*) FROM transactions WHERE bank_account ILIKE '%HDFC%'
Convert the user's request into SQL.
Show transactions larger than 5000 in the travel category.
SELECT * FROM transactions WHERE amount > 5000 AND category ILIKE '%travel%' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Give me every transaction from 2025 where I paid a vendor named 'Amazon'.
SELECT * FROM transactions WHERE payee ILIKE '%Amazon%' AND transaction_date >= DATE '2025-01-01'
Convert the user's request into SQL.
Calculate the total credits I received this week.
SELECT SUM(amount) FROM transactions WHERE txn_type = 'CREDIT' AND transaction_date >= CURRENT_DATE - INTERVAL '7 days'
Convert the user's request into SQL.
What was my most expensive bill in the utilities category this year?
SELECT MAX(amount) FROM transactions WHERE category ILIKE '%utilities%' AND transaction_date >= DATE '2025-01-01'
Convert the user's request into SQL.
Show me transactions made after 8 PM.
SELECT * FROM transactions WHERE transaction_time > '20:00:00' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
List transactions with an empty note field.
SELECT * FROM transactions WHERE notes IS NULL OR notes = ''
Convert the user's request into SQL.
How many unique categories have I used so far?
SELECT COUNT(DISTINCT category) FROM transactions
Convert the user's request into SQL.
Give me transactions made between Jan 1 and Feb 15.
SELECT * FROM transactions WHERE transaction_date BETWEEN '2025-01-01' AND '2025-02-15'
Convert the user's request into SQL.
Show all transactions labeled as 'Gift'.
SELECT * FROM transactions WHERE category ILIKE '%Gift%'
Convert the user's request into SQL.
Which transaction used UPI ID 'abc@okbank'?
SELECT * FROM transactions WHERE upi_transaction_id = 'abc@okbank'
Convert the user's request into SQL.
Group by source app and show the total spent for each.
SELECT source_app, SUM(amount) FROM transactions WHERE txn_type = 'DEBIT' GROUP BY source_app
Convert the user's request into SQL.
Did I have any transactions exceeding 10000 on weekends?
SELECT * FROM transactions WHERE amount > 10000 AND EXTRACT(DOW FROM transaction_date) IN (0, 6)
Convert the user's request into SQL.
Show the most recent 10 transactions.
SELECT * FROM transactions ORDER BY transaction_date DESC, id DESC LIMIT 10
Convert the user's request into SQL.
Search for payments where the category contains 'Subscription'.
SELECT * FROM transactions WHERE category ILIKE '%Subscription%'
Convert the user's request into SQL.
Total balance trend per month for year 2025.
SELECT DATE_TRUNC('month', transaction_date) as month, SUM(CASE WHEN txn_type = 'CREDIT' THEN amount ELSE -amount END) as net FROM transactions WHERE transaction_date >= '2025-01-01' GROUP BY 1 ORDER BY 1
Convert the user's request into SQL.
Find transactions that occurred during the morning hours.
SELECT * FROM transactions WHERE transaction_time >= '06:00:00' AND transaction_time <= '12:00:00'
Convert the user's request into SQL.
Which payees do I use the most frequently?
SELECT payee, COUNT(*) as frequency FROM transactions GROUP BY payee ORDER BY frequency DESC LIMIT 10
Convert the user's request into SQL.
Select all transactions without a specific UPI reference.
SELECT * FROM transactions WHERE upi_transaction_id IS NULL OR upi_transaction_id = ''
Convert the user's request into SQL.
What is the min and max expense recorded?
SELECT MIN(amount), MAX(amount) FROM transactions WHERE txn_type = 'DEBIT'
Convert the user's request into SQL.
Return details for a specific bank account number 987654321.
SELECT * FROM transactions WHERE bank_account = '987654321'
Convert the user's request into SQL.
Filter out transactions made with the app 'PhonePe'.
SELECT * FROM transactions WHERE source_app != 'PhonePe'
Convert the user's request into SQL.
Are there any duplicate transaction amounts made on the same day?
SELECT amount, transaction_date, COUNT(*) FROM transactions GROUP BY amount, transaction_date HAVING COUNT(*) > 1
Convert the user's request into SQL.
Get count of debits vs credits.
SELECT txn_type, COUNT(*) FROM transactions GROUP BY txn_type
Convert the user's request into SQL.
List transactions occurring today.
SELECT * FROM transactions WHERE transaction_date = CURRENT_DATE
Convert the user's request into SQL.
Find entries that might contain 'Restaurant'.
SELECT * FROM transactions WHERE category ILIKE '%Restaurant%' OR notes ILIKE '%Restaurant%'
Convert the user's request into SQL.
Sum of transactions over 500 dollars.
SELECT SUM(amount) FROM transactions WHERE amount > 500
Convert the user's request into SQL.
Fetch details where transaction date is unknown or null.
SELECT * FROM transactions WHERE transaction_date IS NULL
Convert the user's request into SQL.
Which app has processed the highest count of transactions?
SELECT source_app, COUNT(*) as count FROM transactions GROUP BY source_app ORDER BY count DESC LIMIT 1
Convert the user's request into SQL.
Identify any transaction marked with a specific flag word like 'Emergency'.
SELECT * FROM transactions WHERE notes ILIKE '%Emergency%'
Convert the user's request into SQL.
Give me records where payee ends in 'Services'.
SELECT * FROM transactions WHERE payee ILIKE '%Services'
Convert the user's request into SQL.
Calculate the average credit amount.
SELECT AVG(amount) FROM transactions WHERE txn_type = 'CREDIT'
Convert the user's request into SQL.
Find records with a null UPI transaction id.
SELECT * FROM transactions WHERE upi_transaction_id IS NULL
Convert the user's request into SQL.
Show transactions with amount less than or equal to 0.
SELECT * FROM transactions WHERE amount <= 0
Convert the user's request into SQL.
List of payees sorted alphabetically.
SELECT DISTINCT payee FROM transactions ORDER BY payee ASC
Convert the user's request into SQL.
Retrieve data limited to 5 results for my savings account.
SELECT * FROM transactions WHERE bank_account ILIKE '%savings%' LIMIT 5
Convert the user's request into SQL.
Show transactions from January using Credit Card source.
SELECT * FROM transactions WHERE transaction_date >= '2025-01-01' AND transaction_date <= '2025-01-31' AND bank_account ILIKE '%Credit Card%'
Convert the user's request into SQL.
How much money have I moved via GPay this quarter?
SELECT SUM(amount) FROM transactions WHERE source_app ILIKE '%GPay%' AND transaction_date >= '2025-04-01'
Convert the user's request into SQL.
Provide a list of all distinct source apps used.
SELECT DISTINCT source_app FROM transactions
Convert the user's request into SQL.
Get all bank accounts that had transactions exceeding 5000.
SELECT DISTINCT bank_account FROM transactions WHERE amount > 5000 LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
How much have I spent on food in total during May 2025?
SELECT SUM(amount) FROM transactions WHERE category ILIKE '%food%' AND transaction_date >= '2025-05-01' AND transaction_date <= '2025-05-31' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Display the transaction history for my HDFC account ordered by oldest first.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE bank_account ILIKE '%HDFC%' ORDER BY transaction_date ASC, id ASC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show me unique transaction categories used in 2025.
SELECT DISTINCT category FROM transactions WHERE transaction_date >= '2025-01-01' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Who was the payee for the last transaction I made via GPay?
SELECT payee FROM transactions WHERE source_app ILIKE '%GPay%' ORDER BY transaction_date DESC, id DESC LIMIT 1 OFFSET :offset
Convert the user's request into SQL.
Count the number of transactions per source app.
SELECT source_app, COUNT(*) as count FROM transactions GROUP BY source_app LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Give me the sum of all credit entries.
SELECT SUM(amount) FROM transactions WHERE txn_type = 'CREDIT' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find any transaction note that contains the word 'Birthday'.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE notes ILIKE '%Birthday%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find transactions between 100 and 500 that happened in February.
SELECT * FROM transactions WHERE amount BETWEEN 100 AND 500 AND transaction_date >= '2025-02-01' AND transaction_date <= '2025-02-28' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show the count of transactions made in the evening hours (after 6 PM).
SELECT COUNT(*) FROM transactions WHERE transaction_time > '18:00:00' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Are there any transactions with UPI ID 'upi_test_99'?
SELECT * FROM transactions WHERE upi_transaction_id = 'upi_test_99' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
What is the max debit amount from my SBI bank account?
SELECT MAX(amount) FROM transactions WHERE bank_account ILIKE '%SBI%' AND txn_type = 'DEBIT' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Get all records from last weekend.
SELECT * FROM transactions WHERE transaction_date >= '2025-05-24' AND transaction_date <= '2025-05-25' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Select transactions that were categorized as entertainment but weren't over 200.
SELECT * FROM transactions WHERE category ILIKE '%entertainment%' AND amount <= 200 LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
How many distinct payees have I sent money to?
SELECT COUNT(DISTINCT payee) FROM transactions LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Retrieve all transfers that originated from Paytm.
SELECT * FROM transactions WHERE source_app ILIKE '%Paytm%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
List my smallest three expenditures this year.
SELECT * FROM transactions WHERE txn_type = 'DEBIT' AND transaction_date >= '2025-01-01' ORDER BY amount ASC LIMIT 3 OFFSET :offset
Convert the user's request into SQL.
Return all transactions where the payee starts with 'Amazon'.
SELECT * FROM transactions WHERE payee LIKE 'Amazon%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find the total amount spent on taxes in the last three months.
SELECT SUM(amount) FROM transactions WHERE category ILIKE '%tax%' AND transaction_date >= CURRENT_DATE - INTERVAL '3 months' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show me the top 5 largest transactions across all platforms.
SELECT * FROM transactions ORDER BY amount DESC LIMIT 5 OFFSET :offset
Convert the user's request into SQL.
Give me transaction count by category.
SELECT category, COUNT(*) as frequency FROM transactions GROUP BY category ORDER BY frequency DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
I need a report on my utility payments for the whole year.
SELECT * FROM transactions WHERE category ILIKE '%utility%' AND transaction_date >= '2025-01-01' ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Which day in May had the highest count of transactions?
SELECT transaction_date, COUNT(*) as count FROM transactions WHERE transaction_date >= '2025-05-01' AND transaction_date <= '2025-05-31' GROUP BY transaction_date ORDER BY count DESC LIMIT 1 OFFSET :offset
Convert the user's request into SQL.
Are there any pending records? I meant checking empty categories.
SELECT * FROM transactions WHERE category IS NULL OR category = '' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
How much interest did I pay or receive?
SELECT SUM(amount) FROM transactions WHERE category ILIKE '%interest%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Retrieve transaction ids and amount for all travel-related charges.
SELECT id, amount FROM transactions WHERE category ILIKE '%travel%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Select transactions happening at exactly 10 AM.
SELECT * FROM transactions WHERE EXTRACT(HOUR FROM transaction_time) = 10 LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show me entries that lack a transaction time.
SELECT * FROM transactions WHERE transaction_time IS NULL LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find all debit cards linked with transaction history.
SELECT DISTINCT bank_account FROM transactions WHERE txn_type = 'DEBIT' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Fetch recent records but filter out cash transactions.
SELECT * FROM transactions WHERE source_app NOT ILIKE '%cash%' ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
What is the average transaction per payee?
SELECT payee, AVG(amount) FROM transactions GROUP BY payee LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Check for duplicate UPI transaction IDs.
SELECT upi_transaction_id, COUNT(*) FROM transactions GROUP BY upi_transaction_id HAVING COUNT(*) > 1 LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Return all info on high-value transfers over 10,000.
SELECT * FROM transactions WHERE amount > 10000 ORDER BY amount DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
I want to see all entries from January 2025 for groceries.
SELECT * FROM transactions WHERE transaction_date >= '2025-01-01' AND transaction_date <= '2025-01-31' AND category ILIKE '%groceries%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Who were the top 3 recipients I paid most to?
SELECT payee, SUM(amount) as total FROM transactions WHERE txn_type = 'DEBIT' GROUP BY payee ORDER BY total DESC LIMIT 3 OFFSET :offset
Convert the user's request into SQL.
Show entries excluding those in the 'Personal' category.
SELECT * FROM transactions WHERE category NOT ILIKE '%personal%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Any records where payee name contains 'McDonalds'?
SELECT * FROM transactions WHERE payee ILIKE '%McDonalds%' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find out the number of credit card transactions per month.
SELECT EXTRACT(MONTH FROM transaction_date) as month, COUNT(*) FROM transactions WHERE source_app ILIKE '%credit%' GROUP BY month LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
List transactions sorted by amount then date.
SELECT * FROM transactions ORDER BY amount DESC, transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show me total volume for each bank account.
SELECT bank_account, SUM(amount) FROM transactions GROUP BY bank_account LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Find me all transactions made using my HDFC bank account in the last month.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE bank_account ILIKE '%HDFC%' AND transaction_date >= CURRENT_DATE - INTERVAL '30 days' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
What is the total sum of debits for this week?
SELECT SUM(amount) AS total_debit FROM transactions WHERE txn_type = 'DEBIT' AND transaction_date >= DATE_TRUNC('week', CURRENT_DATE) LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
How much money have I spent on food in total since January 2025?
SELECT SUM(amount) FROM transactions WHERE txn_type = 'DEBIT' AND category ILIKE '%food%' AND transaction_date >= '2025-01-01' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
List top 10 recent transactions worth over 5000 units.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE amount > 5000 ORDER BY transaction_date DESC, id DESC LIMIT 10 OFFSET :offset
Convert the user's request into SQL.
Show transactions categorized as 'Education' that happened in February.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE category ILIKE '%Education%' AND EXTRACT(MONTH FROM transaction_date) = 2 ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Who are the payees I paid more than 1000 in a single transaction?
SELECT DISTINCT payee FROM transactions WHERE amount > 1000 AND txn_type = 'DEBIT' LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show me transfers done via UPI with ID starting with '999'.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE upi_transaction_id LIKE '999%' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Did I have any transactions in the notes mentioning 'Reimbursement'?
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE notes ILIKE '%Reimbursement%' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Get all income transactions in the 'Salary' category.
SELECT id, txn_type, amount, payee, category, transaction_date, transaction_time, source_app, upi_transaction_id, bank_account, notes FROM transactions WHERE txn_type = 'CREDIT' AND category ILIKE '%Salary%' ORDER BY transaction_date DESC, id DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Give me the earliest transaction recorded.
SELECT * FROM transactions ORDER BY transaction_date ASC, id ASC LIMIT 1 OFFSET :offset
Convert the user's request into SQL.
List transactions with no notes attached.
SELECT * FROM transactions WHERE notes IS NULL OR notes = '' ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Count the number of distinct categories I've used.
SELECT COUNT(DISTINCT category) FROM transactions LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
What were my five smallest debit amounts in March?
SELECT id, amount, transaction_date FROM transactions WHERE txn_type = 'DEBIT' AND transaction_date >= '2025-03-01' AND transaction_date <= '2025-03-31' ORDER BY amount ASC LIMIT 5 OFFSET :offset
Convert the user's request into SQL.
Filter transactions from 'Amazon' and 'Flipkart' excluding amounts less than 100.
SELECT * FROM transactions WHERE (payee ILIKE '%Amazon%' OR payee ILIKE '%Flipkart%') AND amount >= 100 ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Total balance calculated by credits minus debits?
SELECT (SELECT COALESCE(SUM(amount),0) FROM transactions WHERE txn_type = 'CREDIT') - (SELECT COALESCE(SUM(amount),0) FROM transactions WHERE txn_type = 'DEBIT') AS net_balance LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Give me transactions made on weekend days (Saturday and Sunday).
SELECT * FROM transactions WHERE EXTRACT(ISODOW FROM transaction_date) IN (6, 7) ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Show all transactions where payee is NULL.
SELECT * FROM transactions WHERE payee IS NULL ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
What are my transactions like 'Uber' and 'Ola' for commute expenses?
SELECT * FROM transactions WHERE payee ILIKE '%Uber%' OR payee ILIKE '%Ola%' ORDER BY transaction_date DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
List entries for year 2024 sorted by highest expense.
SELECT * FROM transactions WHERE EXTRACT(YEAR FROM transaction_date) = 2024 AND txn_type = 'DEBIT' ORDER BY amount DESC LIMIT :limit OFFSET :offset
Convert the user's request into SQL.
Are there any duplicate transaction IDs? (Checking integrity)
SELECT upi_transaction_id, COUNT(*) FROM transactions GROUP BY upi_transaction_id HAVING COUNT(*) > 1 LIMIT :limit OFFSET :offset
End of preview. Expand in Data Studio

🀏 smolified-aiexpense2

Intelligence, Distilled.

This is a synthetic training corpus generated by the Smolify Foundry. It was used to train the corresponding model smolify/smolified-aiexpense2.

πŸ“¦ Asset Details

  • Origin: Smolify Foundry (Job ID: a668708e)
  • Records: 10000
  • Type: Synthetic Instruction Tuning Data

βš–οΈ License & Ownership

This dataset is a sovereign asset owned by smolify. Generated via Smolify.ai.

Downloads last month
23