File size: 80,990 Bytes
ff594f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | {"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?"}
{"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?"}
{"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?"}
{"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."}
{"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."}
{"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."}
{"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."}
{"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?"}
{"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'?"}
{"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?"}
{"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."}
{"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?"}
{"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'?"}
{"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?"}
{"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'?"}
{"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'?"}
{"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'?"}
{"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."}
{"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'?"}
{"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?"}
{"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?"}
{"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."}
{"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."}
{"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?"}
{"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'?"}
{"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."}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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."}
{"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'?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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'?"}
{"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?"}
{"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'?"}
{"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?"}
{"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."}
{"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."}
{"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'?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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'?"}
{"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."}
{"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."}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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'?"}
{"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."}
{"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'?"}
{"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'?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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'?"}
{"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?"}
{"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."}
{"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'?"}
{"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?"}
{"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."}
{"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."}
{"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."}
{"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."}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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'?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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."}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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'?"}
{"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?"}
{"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'?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
{"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'?"}
{"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?"}
{"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?"}
{"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?"}
{"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."}
{"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."}
{"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?"}
{"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?"}
{"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."}
{"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."}
{"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."}
{"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."}
{"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'?"}
{"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?"}
{"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'?"}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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."}
{"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?"}
{"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."}
{"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."}
{"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'?"}
{"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?"}
{"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."}
{"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?"}
{"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?"}
{"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?"}
|