{"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?"} {"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?"} {"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?"} {"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?"} {"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."} {"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?"} {"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?"} {"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?"} {"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."} {"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."} {"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."} {"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'?"} {"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?"} {"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."} {"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'?"} {"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?"} {"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?"} {"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."} {"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."} {"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."} {"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."} {"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?"} {"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."} {"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."} {"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?"} {"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."} {"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'?"} {"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?"} {"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."} {"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'?"} {"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."} {"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."} {"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."} {"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?"} {"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."} {"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."} {"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?"} {"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'?"} {"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?"} {"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'?"} {"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?"} {"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?"} {"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?"} {"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'?"} {"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'?"} {"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?"} {"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."} {"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?"} {"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?"} {"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'?"} {"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?"}