Yogi016 commited on
Commit
ff594f3
·
verified ·
1 Parent(s): 9129b95

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. business.db +0 -0
  2. leak_report.json +11 -0
  3. test_iid.jsonl +51 -0
  4. test_novel.jsonl +17 -0
  5. train.jsonl +150 -0
business.db ADDED
Binary file (49.2 kB). View file
 
leak_report.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "train_size": 150,
3
+ "test_iid_size": 51,
4
+ "test_novel_size": 17,
5
+ "exact_question_overlap_iid": 0,
6
+ "exact_sql_overlap_iid": 0,
7
+ "exact_question_overlap_novel": 0,
8
+ "exact_sql_overlap_novel": 0,
9
+ "template_overlap_novel": 0,
10
+ "method": "exact match on whitespace-normalised, lower-cased question and gold SQL; template-id overlap"
11
+ }
test_iid.jsonl ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"template_id": "T23", "question": "How many orders with status 'Delivered' were placed in 2025?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Delivered' AND strftime('%Y', order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Delivered' were placed in 2025?"}
2
+ {"template_id": "T19", "question": "How many orders did the customer 'Meena Menon' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Meena Menon'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Meena Menon' place?"}
3
+ {"template_id": "T19", "question": "How many orders did the customer 'Dinesh Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Dinesh Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Dinesh Nair' place?"}
4
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Kolkata?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Kolkata'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Kolkata?"}
5
+ {"template_id": "T21", "question": "List customers in Lucknow who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Lucknow' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Lucknow who are in the Startup segment."}
6
+ {"template_id": "T19", "question": "How many orders did the customer 'Arjun Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Arjun Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Arjun Nair' place?"}
7
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Jaipur?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Jaipur'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Jaipur?"}
8
+ {"template_id": "T01", "question": "How many customers live in Coimbatore?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Coimbatore'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Coimbatore?"}
9
+ {"template_id": "T05", "question": "List products in the Furniture category priced above 500.", "gold_sql": "SELECT name FROM products WHERE category='Furniture' AND price>500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Furniture category priced above 500."}
10
+ {"template_id": "T05", "question": "List products in the Grocery category priced above 2500.", "gold_sql": "SELECT name FROM products WHERE category='Grocery' AND price>2500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Grocery category priced above 2500."}
11
+ {"template_id": "T05", "question": "List products in the Electronics category priced above 1500.", "gold_sql": "SELECT name FROM products WHERE category='Electronics' AND price>1500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Electronics category priced above 1500."}
12
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Coffee Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Coffee Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Coffee Plus'?"}
13
+ {"template_id": "T23", "question": "How many orders with status 'Shipped' were placed in 2025?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Shipped' AND strftime('%Y', order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Shipped' were placed in 2025?"}
14
+ {"template_id": "T05", "question": "List products in the Grocery category priced above 500.", "gold_sql": "SELECT name FROM products WHERE category='Grocery' AND price>500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Grocery category priced above 500."}
15
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Lentils Lite'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Lentils Lite'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Lentils Lite'?"}
16
+ {"template_id": "T22", "question": "How many products cost less than 500?", "gold_sql": "SELECT COUNT(*) FROM products WHERE price<500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many products cost less than 500?"}
17
+ {"template_id": "T19", "question": "How many orders did the customer 'Ravi Sharma' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Ravi Sharma'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Ravi Sharma' place?"}
18
+ {"template_id": "T21", "question": "List customers in Chennai who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Chennai' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Chennai who are in the Retail segment."}
19
+ {"template_id": "T21", "question": "List customers in Jaipur who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Jaipur' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Jaipur who are in the Startup segment."}
20
+ {"template_id": "T21", "question": "List customers in Kolkata who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Kolkata' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Kolkata who are in the Startup segment."}
21
+ {"template_id": "T09", "question": "Which customers in Ahmedabad have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Ahmedabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Ahmedabad have placed at least one order? List their names."}
22
+ {"template_id": "T19", "question": "How many orders did the customer 'Suresh Patel' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Suresh Patel'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Suresh Patel' place?"}
23
+ {"template_id": "T21", "question": "List customers in Hyderabad who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Hyderabad' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Hyderabad who are in the Retail segment."}
24
+ {"template_id": "T14", "question": "List the cities that have more than 4 customers.", "gold_sql": "SELECT city FROM customers GROUP BY city HAVING COUNT(*)>4", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the cities that have more than 4 customers."}
25
+ {"template_id": "T19", "question": "How many orders did the customer 'Rahul Iyer' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Rahul Iyer'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Rahul Iyer' place?"}
26
+ {"template_id": "T09", "question": "Which customers in Kolkata have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Kolkata'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Kolkata have placed at least one order? List their names."}
27
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Ball Mini'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Ball Mini'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Ball Mini'?"}
28
+ {"template_id": "T19", "question": "How many orders did the customer 'Meena Reddy' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Meena Reddy'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Meena Reddy' place?"}
29
+ {"template_id": "T21", "question": "List customers in Kochi who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Kochi' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Kochi who are in the Startup segment."}
30
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Rice Max'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Rice Max'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Rice Max'?"}
31
+ {"template_id": "T21", "question": "List customers in Pune who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Pune' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Pune who are in the Startup segment."}
32
+ {"template_id": "T02", "question": "List the names of customers in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the names of customers in the Corporate segment."}
33
+ {"template_id": "T14", "question": "List the cities that have more than 3 customers.", "gold_sql": "SELECT city FROM customers GROUP BY city HAVING COUNT(*)>3", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the cities that have more than 3 customers."}
34
+ {"template_id": "T04", "question": "What is the average price of products in the Sports category?", "gold_sql": "SELECT AVG(price) FROM products WHERE category='Sports'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the average price of products in the Sports category?"}
35
+ {"template_id": "T02", "question": "List the names of customers in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the names of customers in the Retail segment."}
36
+ {"template_id": "T21", "question": "List customers in Ahmedabad who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Ahmedabad' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Ahmedabad who are in the Corporate segment."}
37
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Bengaluru?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Bengaluru'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Bengaluru?"}
38
+ {"template_id": "T06", "question": "How many distinct customers have an order with status 'Pending'?", "gold_sql": "SELECT COUNT(DISTINCT customer_id) FROM orders WHERE status='Pending'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many distinct customers have an order with status 'Pending'?"}
39
+ {"template_id": "T01", "question": "How many customers live in Chennai?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Chennai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Chennai?"}
40
+ {"template_id": "T06", "question": "How many distinct customers have an order with status 'Shipped'?", "gold_sql": "SELECT COUNT(DISTINCT customer_id) FROM orders WHERE status='Shipped'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many distinct customers have an order with status 'Shipped'?"}
41
+ {"template_id": "T01", "question": "How many customers live in Mumbai?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Mumbai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Mumbai?"}
42
+ {"template_id": "T19", "question": "How many orders did the customer 'Kavya Iyer' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Kavya Iyer'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Kavya Iyer' place?"}
43
+ {"template_id": "T22", "question": "How many products cost less than 1000?", "gold_sql": "SELECT COUNT(*) FROM products WHERE price<1000", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many products cost less than 1000?"}
44
+ {"template_id": "T06", "question": "How many distinct customers have an order with status 'Cancelled'?", "gold_sql": "SELECT COUNT(DISTINCT customer_id) FROM orders WHERE status='Cancelled'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many distinct customers have an order with status 'Cancelled'?"}
45
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Jeans Pro'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Jeans Pro'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Jeans Pro'?"}
46
+ {"template_id": "T19", "question": "How many orders did the customer 'Lakshmi Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Lakshmi Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Lakshmi Nair' place?"}
47
+ {"template_id": "T21", "question": "List customers in Bengaluru who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Bengaluru' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Bengaluru who are in the Corporate segment."}
48
+ {"template_id": "T08", "question": "What is the total revenue from Clothing products?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.category='Clothing'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue from Clothing products?"}
49
+ {"template_id": "T19", "question": "How many orders did the customer 'Nisha Rao' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Nisha Rao'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Nisha Rao' place?"}
50
+ {"template_id": "T03", "question": "How many orders have status 'Shipped'?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Shipped'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders have status 'Shipped'?"}
51
+ {"template_id": "T01", "question": "How many customers live in Pune?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Pune'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Pune?"}
test_novel.jsonl ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"template_id": "T12", "question": "How many orders did each customer in Chennai place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Chennai' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Chennai place? Show name and count."}
2
+ {"template_id": "T12", "question": "How many orders did each customer in Bengaluru place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Bengaluru' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Bengaluru place? Show name and count."}
3
+ {"template_id": "T12", "question": "How many orders did each customer in Mumbai place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Mumbai' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Mumbai place? Show name and count."}
4
+ {"template_id": "T12", "question": "How many orders did each customer in Delhi place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Delhi' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Delhi place? Show name and count."}
5
+ {"template_id": "T12", "question": "How many orders did each customer in Hyderabad place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Hyderabad' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Hyderabad place? Show name and count."}
6
+ {"template_id": "T12", "question": "How many orders did each customer in Pune place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Pune' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Pune place? Show name and count."}
7
+ {"template_id": "T12", "question": "How many orders did each customer in Kolkata place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Kolkata' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Kolkata place? Show name and count."}
8
+ {"template_id": "T12", "question": "How many orders did each customer in Ahmedabad place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Ahmedabad' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Ahmedabad place? Show name and count."}
9
+ {"template_id": "T12", "question": "How many orders did each customer in Jaipur place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Jaipur' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Jaipur place? Show name and count."}
10
+ {"template_id": "T12", "question": "How many orders did each customer in Kochi place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Kochi' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Kochi place? Show name and count."}
11
+ {"template_id": "T12", "question": "How many orders did each customer in Coimbatore place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Coimbatore' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Coimbatore place? Show name and count."}
12
+ {"template_id": "T12", "question": "How many orders did each customer in Lucknow place? Show name and count.", "gold_sql": "SELECT c.name, COUNT(o.id) FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE c.city='Lucknow' GROUP BY c.id", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did each customer in Lucknow place? Show name and count."}
13
+ {"template_id": "T15", "question": "How many customers have never placed an order?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE id NOT IN (SELECT customer_id FROM orders)", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers have never placed an order?"}
14
+ {"template_id": "T17", "question": "List the Electronics products that have never been ordered.", "gold_sql": "SELECT name FROM products WHERE category='Electronics' AND id NOT IN (SELECT product_id FROM order_items)", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the Electronics products that have never been ordered."}
15
+ {"template_id": "T17", "question": "List the Clothing products that have never been ordered.", "gold_sql": "SELECT name FROM products WHERE category='Clothing' AND id NOT IN (SELECT product_id FROM order_items)", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the Clothing products that have never been ordered."}
16
+ {"template_id": "T17", "question": "List the Sports products that have never been ordered.", "gold_sql": "SELECT name FROM products WHERE category='Sports' AND id NOT IN (SELECT product_id FROM order_items)", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the Sports products that have never been ordered."}
17
+ {"template_id": "T18", "question": "Which customer has spent the most in total? Give the name.", "gold_sql": "SELECT c.name FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id GROUP BY c.id ORDER BY SUM(oi.quantity*p.price) DESC, c.id LIMIT 1", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customer has spent the most in total? Give the name."}
train.jsonl ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"template_id": "T19", "question": "How many orders did the customer 'Gautam Kumar' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Gautam Kumar'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Gautam Kumar' place?"}
2
+ {"template_id": "T19", "question": "How many orders did the customer 'Sanjay Sharma' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Sanjay Sharma'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Sanjay Sharma' place?"}
3
+ {"template_id": "T04", "question": "What is the average price of products in the Grocery category?", "gold_sql": "SELECT AVG(price) FROM products WHERE category='Grocery'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the average price of products in the Grocery category?"}
4
+ {"template_id": "T05", "question": "List products in the Sports category priced above 500.", "gold_sql": "SELECT name FROM products WHERE category='Sports' AND price>500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Sports category priced above 500."}
5
+ {"template_id": "T05", "question": "List products in the Clothing category priced above 1500.", "gold_sql": "SELECT name FROM products WHERE category='Clothing' AND price>1500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Clothing category priced above 1500."}
6
+ {"template_id": "T21", "question": "List customers in Kolkata who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Kolkata' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Kolkata who are in the Retail segment."}
7
+ {"template_id": "T21", "question": "List customers in Bengaluru who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Bengaluru' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Bengaluru who are in the Startup segment."}
8
+ {"template_id": "T01", "question": "How many customers live in Ahmedabad?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Ahmedabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Ahmedabad?"}
9
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Shoes Mini'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Shoes Mini'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Shoes Mini'?"}
10
+ {"template_id": "T19", "question": "How many orders did the customer 'Nisha Menon' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Nisha Menon'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Nisha Menon' place?"}
11
+ {"template_id": "T21", "question": "List customers in Pune who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Pune' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Pune who are in the Corporate segment."}
12
+ {"template_id": "T19", "question": "How many orders did the customer 'Anita Sharma' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Anita Sharma'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Anita Sharma' place?"}
13
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Sofa Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Sofa Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Sofa Plus'?"}
14
+ {"template_id": "T23", "question": "How many orders with status 'Delivered' were placed in 2023?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Delivered' AND strftime('%Y', order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Delivered' were placed in 2023?"}
15
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Speaker Max'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Speaker Max'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Speaker Max'?"}
16
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Camera Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Camera Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Camera Plus'?"}
17
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Racket Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Racket Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Racket Plus'?"}
18
+ {"template_id": "T21", "question": "List customers in Chennai who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Chennai' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Chennai who are in the Corporate segment."}
19
+ {"template_id": "T03", "question": "How many orders have status 'Delivered'?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Delivered'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders have status 'Delivered'?"}
20
+ {"template_id": "T01", "question": "How many customers live in Jaipur?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Jaipur'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Jaipur?"}
21
+ {"template_id": "T19", "question": "How many orders did the customer 'Rekha Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Rekha Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Rekha Nair' place?"}
22
+ {"template_id": "T13", "question": "Which 5 products have the highest price? List their names.", "gold_sql": "SELECT name FROM products ORDER BY price DESC LIMIT 5", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which 5 products have the highest price? List their names."}
23
+ {"template_id": "T21", "question": "List customers in Lucknow who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Lucknow' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Lucknow who are in the Corporate segment."}
24
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Lucknow?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Lucknow'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Lucknow?"}
25
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Table Classic'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Table Classic'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Table Classic'?"}
26
+ {"template_id": "T13", "question": "Which 7 products have the highest price? List their names.", "gold_sql": "SELECT name FROM products ORDER BY price DESC LIMIT 7", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which 7 products have the highest price? List their names."}
27
+ {"template_id": "T09", "question": "Which customers in Coimbatore have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Coimbatore'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Coimbatore have placed at least one order? List their names."}
28
+ {"template_id": "T19", "question": "How many orders did the customer 'Rekha Patel' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Rekha Patel'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Rekha Patel' place?"}
29
+ {"template_id": "T19", "question": "How many orders did the customer 'Vikram Iyer' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Vikram Iyer'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Vikram Iyer' place?"}
30
+ {"template_id": "T19", "question": "How many orders did the customer 'Priya Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Priya Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Priya Singh' place?"}
31
+ {"template_id": "T05", "question": "List products in the Electronics category priced above 2500.", "gold_sql": "SELECT name FROM products WHERE category='Electronics' AND price>2500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Electronics category priced above 2500."}
32
+ {"template_id": "T01", "question": "How many customers live in Hyderabad?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Hyderabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Hyderabad?"}
33
+ {"template_id": "T09", "question": "Which customers in Bengaluru have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Bengaluru'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Bengaluru have placed at least one order? List their names."}
34
+ {"template_id": "T03", "question": "How many orders have status 'Cancelled'?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Cancelled'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders have status 'Cancelled'?"}
35
+ {"template_id": "T04", "question": "What is the average price of products in the Furniture category?", "gold_sql": "SELECT AVG(price) FROM products WHERE category='Furniture'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the average price of products in the Furniture category?"}
36
+ {"template_id": "T23", "question": "How many orders with status 'Cancelled' were placed in 2025?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Cancelled' AND strftime('%Y', order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Cancelled' were placed in 2025?"}
37
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Coimbatore?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Coimbatore'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Coimbatore?"}
38
+ {"template_id": "T05", "question": "List products in the Grocery category priced above 1500.", "gold_sql": "SELECT name FROM products WHERE category='Grocery' AND price>1500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Grocery category priced above 1500."}
39
+ {"template_id": "T11", "question": "What is the total revenue in 2025?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM orders o JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id WHERE strftime('%Y', o.order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue in 2025?"}
40
+ {"template_id": "T19", "question": "How many orders did the customer 'Dinesh Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Dinesh Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Dinesh Singh' place?"}
41
+ {"template_id": "T03", "question": "How many orders have status 'Pending'?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Pending'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders have status 'Pending'?"}
42
+ {"template_id": "T23", "question": "How many orders with status 'Shipped' were placed in 2023?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Shipped' AND strftime('%Y', order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Shipped' were placed in 2023?"}
43
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Desk Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Desk Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Desk Plus'?"}
44
+ {"template_id": "T22", "question": "How many products cost less than 2000?", "gold_sql": "SELECT COUNT(*) FROM products WHERE price<2000", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many products cost less than 2000?"}
45
+ {"template_id": "T05", "question": "List products in the Electronics category priced above 500.", "gold_sql": "SELECT name FROM products WHERE category='Electronics' AND price>500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Electronics category priced above 500."}
46
+ {"template_id": "T09", "question": "Which customers in Kochi have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Kochi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Kochi have placed at least one order? List their names."}
47
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Chair Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Chair Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Chair Plus'?"}
48
+ {"template_id": "T04", "question": "What is the average price of products in the Clothing category?", "gold_sql": "SELECT AVG(price) FROM products WHERE category='Clothing'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the average price of products in the Clothing category?"}
49
+ {"template_id": "T11", "question": "What is the total revenue in 2024?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM orders o JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id WHERE strftime('%Y', o.order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue in 2024?"}
50
+ {"template_id": "T19", "question": "How many orders did the customer 'Arjun Kumar' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Arjun Kumar'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Arjun Kumar' place?"}
51
+ {"template_id": "T08", "question": "What is the total revenue from Furniture products?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.category='Furniture'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue from Furniture products?"}
52
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Delhi?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Delhi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Delhi?"}
53
+ {"template_id": "T21", "question": "List customers in Mumbai who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Mumbai' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Mumbai who are in the Corporate segment."}
54
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Ahmedabad?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Ahmedabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Ahmedabad?"}
55
+ {"template_id": "T08", "question": "What is the total revenue from Sports products?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.category='Sports'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue from Sports products?"}
56
+ {"template_id": "T23", "question": "How many orders with status 'Pending' were placed in 2025?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Pending' AND strftime('%Y', order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Pending' were placed in 2025?"}
57
+ {"template_id": "T01", "question": "How many customers live in Kolkata?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Kolkata'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Kolkata?"}
58
+ {"template_id": "T19", "question": "How many orders did the customer 'Pooja Das' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Pooja Das'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Pooja Das' place?"}
59
+ {"template_id": "T23", "question": "How many orders with status 'Pending' were placed in 2024?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Pending' AND strftime('%Y', order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Pending' were placed in 2024?"}
60
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Spices Lite'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Spices Lite'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Spices Lite'?"}
61
+ {"template_id": "T05", "question": "List products in the Furniture category priced above 2500.", "gold_sql": "SELECT name FROM products WHERE category='Furniture' AND price>2500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Furniture category priced above 2500."}
62
+ {"template_id": "T21", "question": "List customers in Ahmedabad who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Ahmedabad' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Ahmedabad who are in the Startup segment."}
63
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Mumbai?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Mumbai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Mumbai?"}
64
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Kochi?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Kochi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Kochi?"}
65
+ {"template_id": "T05", "question": "List products in the Furniture category priced above 1500.", "gold_sql": "SELECT name FROM products WHERE category='Furniture' AND price>1500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Furniture category priced above 1500."}
66
+ {"template_id": "T10", "question": "How many orders were placed in 2025?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE strftime('%Y', order_date)='2025'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders were placed in 2025?"}
67
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Laptop Classic'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Laptop Classic'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Laptop Classic'?"}
68
+ {"template_id": "T09", "question": "Which customers in Lucknow have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Lucknow'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Lucknow have placed at least one order? List their names."}
69
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Tea Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Tea Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Tea Plus'?"}
70
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Shelf Pro'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Shelf Pro'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Shelf Pro'?"}
71
+ {"template_id": "T04", "question": "What is the average price of products in the Electronics category?", "gold_sql": "SELECT AVG(price) FROM products WHERE category='Electronics'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the average price of products in the Electronics category?"}
72
+ {"template_id": "T01", "question": "How many customers live in Lucknow?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Lucknow'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Lucknow?"}
73
+ {"template_id": "T19", "question": "How many orders did the customer 'Ravi Iyer' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Ravi Iyer'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Ravi Iyer' place?"}
74
+ {"template_id": "T19", "question": "How many orders did the customer 'Ravi Rao' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Ravi Rao'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Ravi Rao' place?"}
75
+ {"template_id": "T05", "question": "List products in the Sports category priced above 1500.", "gold_sql": "SELECT name FROM products WHERE category='Sports' AND price>1500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Sports category priced above 1500."}
76
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Hyderabad?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Hyderabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Hyderabad?"}
77
+ {"template_id": "T01", "question": "How many customers live in Bengaluru?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Bengaluru'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Bengaluru?"}
78
+ {"template_id": "T19", "question": "How many orders did the customer 'Karthik Rao' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Karthik Rao'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Karthik Rao' place?"}
79
+ {"template_id": "T19", "question": "How many orders did the customer 'Vikram Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Vikram Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Vikram Singh' place?"}
80
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Oil Lite'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Oil Lite'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Oil Lite'?"}
81
+ {"template_id": "T19", "question": "How many orders did the customer 'Manoj Iyer' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Manoj Iyer'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Manoj Iyer' place?"}
82
+ {"template_id": "T09", "question": "Which customers in Hyderabad have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Hyderabad'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Hyderabad have placed at least one order? List their names."}
83
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Cabinet Pro'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Cabinet Pro'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Cabinet Pro'?"}
84
+ {"template_id": "T19", "question": "How many orders did the customer 'Nisha Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Nisha Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Nisha Singh' place?"}
85
+ {"template_id": "T21", "question": "List customers in Mumbai who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Mumbai' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Mumbai who are in the Retail segment."}
86
+ {"template_id": "T05", "question": "List products in the Sports category priced above 2500.", "gold_sql": "SELECT name FROM products WHERE category='Sports' AND price>2500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Sports category priced above 2500."}
87
+ {"template_id": "T21", "question": "List customers in Delhi who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Delhi' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Delhi who are in the Startup segment."}
88
+ {"template_id": "T21", "question": "List customers in Chennai who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Chennai' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Chennai who are in the Startup segment."}
89
+ {"template_id": "T19", "question": "How many orders did the customer 'Sanjay Reddy' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Sanjay Reddy'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Sanjay Reddy' place?"}
90
+ {"template_id": "T19", "question": "How many orders did the customer 'Kavya Das' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Kavya Das'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Kavya Das' place?"}
91
+ {"template_id": "T14", "question": "List the cities that have more than 5 customers.", "gold_sql": "SELECT city FROM customers GROUP BY city HAVING COUNT(*)>5", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the cities that have more than 5 customers."}
92
+ {"template_id": "T19", "question": "How many orders did the customer 'Rekha Menon' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Rekha Menon'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Rekha Menon' place?"}
93
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Helmet Pro'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Helmet Pro'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Helmet Pro'?"}
94
+ {"template_id": "T02", "question": "List the names of customers in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List the names of customers in the Startup segment."}
95
+ {"template_id": "T23", "question": "How many orders with status 'Cancelled' were placed in 2024?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Cancelled' AND strftime('%Y', order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Cancelled' were placed in 2024?"}
96
+ {"template_id": "T19", "question": "How many orders did the customer 'Karthik Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Karthik Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Karthik Nair' place?"}
97
+ {"template_id": "T23", "question": "How many orders with status 'Cancelled' were placed in 2023?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Cancelled' AND strftime('%Y', order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Cancelled' were placed in 2023?"}
98
+ {"template_id": "T23", "question": "How many orders with status 'Delivered' were placed in 2024?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Delivered' AND strftime('%Y', order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Delivered' were placed in 2024?"}
99
+ {"template_id": "T19", "question": "How many orders did the customer 'Sanjay Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Sanjay Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Sanjay Nair' place?"}
100
+ {"template_id": "T10", "question": "How many orders were placed in 2023?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE strftime('%Y', order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders were placed in 2023?"}
101
+ {"template_id": "T10", "question": "How many orders were placed in 2024?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE strftime('%Y', order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders were placed in 2024?"}
102
+ {"template_id": "T09", "question": "Which customers in Chennai have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Chennai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Chennai have placed at least one order? List their names."}
103
+ {"template_id": "T21", "question": "List customers in Bengaluru who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Bengaluru' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Bengaluru who are in the Retail segment."}
104
+ {"template_id": "T08", "question": "What is the total revenue from Grocery products?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.category='Grocery'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue from Grocery products?"}
105
+ {"template_id": "T21", "question": "List customers in Hyderabad who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Hyderabad' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Hyderabad who are in the Corporate segment."}
106
+ {"template_id": "T19", "question": "How many orders did the customer 'Gautam Das' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Gautam Das'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Gautam Das' place?"}
107
+ {"template_id": "T19", "question": "How many orders did the customer 'Manoj Patel' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Manoj Patel'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Manoj Patel' place?"}
108
+ {"template_id": "T22", "question": "How many products cost less than 3000?", "gold_sql": "SELECT COUNT(*) FROM products WHERE price<3000", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many products cost less than 3000?"}
109
+ {"template_id": "T19", "question": "How many orders did the customer 'Vikram Reddy' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Vikram Reddy'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Vikram Reddy' place?"}
110
+ {"template_id": "T19", "question": "How many orders did the customer 'Priya Kumar' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Priya Kumar'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Priya Kumar' place?"}
111
+ {"template_id": "T19", "question": "How many orders did the customer 'Asha Sharma' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Asha Sharma'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Asha Sharma' place?"}
112
+ {"template_id": "T19", "question": "How many orders did the customer 'Anita Menon' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Anita Menon'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Anita Menon' place?"}
113
+ {"template_id": "T22", "question": "How many products cost less than 4000?", "gold_sql": "SELECT COUNT(*) FROM products WHERE price<4000", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many products cost less than 4000?"}
114
+ {"template_id": "T21", "question": "List customers in Ahmedabad who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Ahmedabad' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Ahmedabad who are in the Retail segment."}
115
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Phone Mini'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Phone Mini'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Phone Mini'?"}
116
+ {"template_id": "T19", "question": "How many orders did the customer 'Meena Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Meena Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Meena Singh' place?"}
117
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Dress Classic'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Dress Classic'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Dress Classic'?"}
118
+ {"template_id": "T13", "question": "Which 3 products have the highest price? List their names.", "gold_sql": "SELECT name FROM products ORDER BY price DESC LIMIT 3", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which 3 products have the highest price? List their names."}
119
+ {"template_id": "T01", "question": "How many customers live in Kochi?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Kochi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Kochi?"}
120
+ {"template_id": "T11", "question": "What is the total revenue in 2023?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM orders o JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id WHERE strftime('%Y', o.order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue in 2023?"}
121
+ {"template_id": "T23", "question": "How many orders with status 'Shipped' were placed in 2024?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Shipped' AND strftime('%Y', order_date)='2024'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Shipped' were placed in 2024?"}
122
+ {"template_id": "T06", "question": "How many distinct customers have an order with status 'Delivered'?", "gold_sql": "SELECT COUNT(DISTINCT customer_id) FROM orders WHERE status='Delivered'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many distinct customers have an order with status 'Delivered'?"}
123
+ {"template_id": "T19", "question": "How many orders did the customer 'Manoj Singh' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Manoj Singh'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Manoj Singh' place?"}
124
+ {"template_id": "T19", "question": "How many orders did the customer 'Divya Kumar' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Divya Kumar'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Divya Kumar' place?"}
125
+ {"template_id": "T19", "question": "How many orders did the customer 'Asha Rao' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Asha Rao'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Asha Rao' place?"}
126
+ {"template_id": "T21", "question": "List customers in Coimbatore who are in the Startup segment.", "gold_sql": "SELECT name FROM customers WHERE city='Coimbatore' AND segment='Startup'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Coimbatore who are in the Startup segment."}
127
+ {"template_id": "T21", "question": "List customers in Kochi who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Kochi' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Kochi who are in the Corporate segment."}
128
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Pune?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Pune'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Pune?"}
129
+ {"template_id": "T08", "question": "What is the total revenue from Electronics products?", "gold_sql": "SELECT SUM(oi.quantity*p.price) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.category='Electronics'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total revenue from Electronics products?"}
130
+ {"template_id": "T21", "question": "List customers in Jaipur who are in the Corporate segment.", "gold_sql": "SELECT name FROM customers WHERE city='Jaipur' AND segment='Corporate'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Jaipur who are in the Corporate segment."}
131
+ {"template_id": "T21", "question": "List customers in Coimbatore who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Coimbatore' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Coimbatore who are in the Retail segment."}
132
+ {"template_id": "T05", "question": "List products in the Clothing category priced above 500.", "gold_sql": "SELECT name FROM products WHERE category='Clothing' AND price>500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Clothing category priced above 500."}
133
+ {"template_id": "T09", "question": "Which customers in Pune have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Pune'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Pune have placed at least one order? List their names."}
134
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Gloves Pro'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Gloves Pro'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Gloves Pro'?"}
135
+ {"template_id": "T19", "question": "How many orders did the customer 'Meena Nair' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Meena Nair'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Meena Nair' place?"}
136
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Bat Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Bat Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Bat Plus'?"}
137
+ {"template_id": "T23", "question": "How many orders with status 'Pending' were placed in 2023?", "gold_sql": "SELECT COUNT(*) FROM orders WHERE status='Pending' AND strftime('%Y', order_date)='2023'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders with status 'Pending' were placed in 2023?"}
138
+ {"template_id": "T21", "question": "List customers in Delhi who are in the Retail segment.", "gold_sql": "SELECT name FROM customers WHERE city='Delhi' AND segment='Retail'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List customers in Delhi who are in the Retail segment."}
139
+ {"template_id": "T20", "question": "What is the total quantity of items ordered by customers in Chennai?", "gold_sql": "SELECT SUM(oi.quantity) FROM customers c JOIN orders o ON o.customer_id=c.id JOIN order_items oi ON oi.order_id=o.id WHERE c.city='Chennai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity of items ordered by customers in Chennai?"}
140
+ {"template_id": "T19", "question": "How many orders did the customer 'Karthik Patel' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Karthik Patel'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Karthik Patel' place?"}
141
+ {"template_id": "T09", "question": "Which customers in Mumbai have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Mumbai'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Mumbai have placed at least one order? List their names."}
142
+ {"template_id": "T19", "question": "How many orders did the customer 'Pooja Reddy' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Pooja Reddy'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Pooja Reddy' place?"}
143
+ {"template_id": "T09", "question": "Which customers in Delhi have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Delhi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Delhi have placed at least one order? List their names."}
144
+ {"template_id": "T05", "question": "List products in the Clothing category priced above 2500.", "gold_sql": "SELECT name FROM products WHERE category='Clothing' AND price>2500", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: List products in the Clothing category priced above 2500."}
145
+ {"template_id": "T07", "question": "What is the total quantity sold of the product 'Jacket Plus'?", "gold_sql": "SELECT SUM(oi.quantity) FROM order_items oi JOIN products p ON p.id=oi.product_id WHERE p.name='Jacket Plus'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: What is the total quantity sold of the product 'Jacket Plus'?"}
146
+ {"template_id": "T19", "question": "How many orders did the customer 'Sanjay Patel' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Sanjay Patel'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Sanjay Patel' place?"}
147
+ {"template_id": "T09", "question": "Which customers in Jaipur have placed at least one order? List their names.", "gold_sql": "SELECT DISTINCT c.name FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Jaipur'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: Which customers in Jaipur have placed at least one order? List their names."}
148
+ {"template_id": "T19", "question": "How many orders did the customer 'Rekha Sharma' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Rekha Sharma'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Rekha Sharma' place?"}
149
+ {"template_id": "T01", "question": "How many customers live in Delhi?", "gold_sql": "SELECT COUNT(*) FROM customers WHERE city='Delhi'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many customers live in Delhi?"}
150
+ {"template_id": "T19", "question": "How many orders did the customer 'Gautam Rao' place?", "gold_sql": "SELECT COUNT(*) FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.name='Gautam Rao'", "prompt": "Database schema (SQLite):\ncustomers(id, name, city, segment, signup_date)\nproducts(id, name, category, price)\norders(id, customer_id, order_date, status)\norder_items(id, order_id, product_id, quantity)\nWrite one SQLite SELECT query inside a ```sql block.\nQuestion: How many orders did the customer 'Gautam Rao' place?"}