File size: 65,815 Bytes
5877747
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{"id": "F1_paying_customers|Kochi|2024|S_s104", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Kochi", "year": 2024}, "question": "How many distinct customers from Kochi made at least one payment in 2024 (by payment date)?", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Kochi_2024_x/cf_drop_customers.db", "train/dbs/S_s104/f_Kochi_2024_x/cf_refunds.db"], "cf_edits": ["drop_customers", "refunds"], "cf_kinds": ["changing", "preserving"], "gold": [[[2]], [[1]], [[2]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Kochi' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Indore|2024|S_s104", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Indore", "year": 2024}, "question": "How many distinct customers from Indore made at least one payment in 2024 (by payment date)?", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Indore_2024_x/cf_new_customers.db", "train/dbs/S_s104/f_Indore_2024_x/cf_dup_order.db"], "cf_edits": ["new_customers", "dup_order"], "cf_kinds": ["changing", "preserving"], "gold": [[[6]], [[7]], [[6]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Indore' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": true, "count_orders": true}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Surat|2024|S_s104", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Surat", "year": 2024}, "question": "How many distinct customers from Surat made at least one payment in 2024 (by payment date)?", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Surat_2024_x/cf_new_customers.db", "train/dbs/S_s104/f_Surat_2024_x/cf_split_payments.db"], "cf_edits": ["new_customers", "split_payments"], "cf_kinds": ["changing", "preserving"], "gold": [[[2]], [[3]], [[2]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Surat' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Nagpur|2024|S_s104", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Nagpur", "year": 2024}, "question": "Count the customers in Nagpur who paid anything during 2024, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Nagpur_2024_x/cf_new_customers.db", "train/dbs/S_s104/f_Nagpur_2024_x/cf_adjustments.db"], "cf_edits": ["new_customers", "adjustments"], "cf_kinds": ["changing", "preserving"], "gold": [[[2]], [[3]], [[2]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Nagpur' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": true, "count_orders": true}, "mutant_caught": {"count_rows": true, "count_orders": false}, "mutant_catchable": {"count_rows": true, "count_orders": false}}
{"id": "F1_paying_customers|Nagpur|2025|S_s104", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Nagpur", "year": 2025}, "question": "How many distinct customers from Nagpur made at least one payment in 2025 (by payment date)?", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2025'", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Nagpur_2025_x/cf_new_customers.db", "train/dbs/S_s104/f_Nagpur_2025_x/cf_later_tier.db"], "cf_edits": ["new_customers", "later_tier"], "cf_kinds": ["changing", "preserving"], "gold": [[[1]], [[2]], [[1]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Nagpur' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2025-01-01' AND '2025-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2025'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Nagpur' AND substr(pay.paid_date, 1, 4) = '2025'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F2_refunded_category|books|S_s104", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "books"}, "question": "What is the total refunded amount for orders that contain at least one books product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'books')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_x_x_books/cf_refunds.db", "train/dbs/S_s104/f_x_x_books/cf_split_items.db"], "cf_edits": ["refunds", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[7972]], [[62798]], [[7972]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'books')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'books'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|electronics|S_s104", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "electronics"}, "question": "Add up all refunds issued on orders that include any electronics item.", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'electronics')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_x_x_electronics/cf_refunds.db", "train/dbs/S_s104/f_x_x_electronics/cf_adjustments.db"], "cf_edits": ["refunds", "adjustments"], "cf_kinds": ["changing", "preserving"], "gold": [[[2544]], [[68723]], [[2544]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'electronics')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'electronics'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|grocery|S_s104", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "grocery"}, "question": "Add up all refunds issued on orders that include any grocery item.", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'grocery')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_x_x_grocery/cf_refunds.db", "train/dbs/S_s104/f_x_x_grocery/cf_split_items.db"], "cf_edits": ["refunds", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[1098]], [[58737]], [[1098]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'grocery')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'grocery'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|toys|S_s104", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "toys"}, "question": "What is the total refunded amount for orders that contain at least one toys product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'toys')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_x_x_toys/cf_new_customers.db", "train/dbs/S_s104/f_x_x_toys/cf_split_items.db"], "cf_edits": ["new_customers", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[149]], [[1357]], [[149]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'toys')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'toys'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|home|S_s104", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "home"}, "question": "What is the total refunded amount for orders that contain at least one home product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'home')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_x_x_home/cf_new_customers.db", "train/dbs/S_s104/f_x_x_home/cf_later_tier.db"], "cf_edits": ["new_customers", "later_tier"], "cf_kinds": ["changing", "preserving"], "gold": [[[8028]], [[9437]], [[8028]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'home')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'home'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F3_net_revenue|Delhi|2024|S_s104", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Delhi", "year": 2024}, "question": "What was the net revenue from customers in Delhi in 2024?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Delhi_2024_x/cf_refunds.db", "train/dbs/S_s104/f_Delhi_2024_x/cf_cancelled_orders.db"], "cf_edits": ["refunds", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[28013]], [[25793]], [[28013]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Jaipur|2024|S_s104", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Jaipur", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Jaipur.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Jaipur_2024_x/cf_new_customers.db", "train/dbs/S_s104/f_Jaipur_2024_x/cf_superseded_tier.db", "train/dbs/S_s104/f_Jaipur_2024_x/cf_refunds.db"], "cf_edits": ["new_customers", "superseded_tier", "refunds"], "cf_kinds": ["changing", "preserving", "changing"], "gold": [[[34684]], [[40298]], [[34684]], [[27266]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Kochi|2025|S_s104", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Kochi", "year": 2025}, "question": "Compute net revenue for 2025 from customers based in Kochi.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Kochi_2025_x/cf_refunds.db", "train/dbs/S_s104/f_Kochi_2025_x/cf_split_payments.db"], "cf_edits": ["refunds", "split_payments"], "cf_kinds": ["changing", "preserving"], "gold": [[[72268]], [[65164]], [[72268]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Indore|2025|S_s104", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Indore", "year": 2025}, "question": "What was the net revenue from customers in Indore in 2025?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025')", "ordered": false, "dbs": ["train/dbs/S_s104/base.db", "train/dbs/S_s104/f_Indore_2025_x/cf_refunds.db", "train/dbs/S_s104/f_Indore_2025_x/cf_split_payments.db"], "cf_edits": ["refunds", "split_payments"], "cf_kinds": ["changing", "preserving"], "gold": [[[103906]], [[82817]], [[103906]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F1_paying_customers|Jaipur|2024|S_s105", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Jaipur", "year": 2024}, "question": "Count the customers in Jaipur who paid anything during 2024, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Jaipur_2024_x/cf_new_customers.db", "train/dbs/S_s105/f_Jaipur_2024_x/cf_dup_order.db"], "cf_edits": ["new_customers", "dup_order"], "cf_kinds": ["changing", "preserving"], "gold": [[[1]], [[3]], [[1]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Jaipur' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": true, "count_orders": true}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Kochi|2024|S_s105", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Kochi", "year": 2024}, "question": "Count the customers in Kochi who paid anything during 2024, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Kochi_2024_x/cf_new_customers.db", "train/dbs/S_s105/f_Kochi_2024_x/cf_cancelled_orders.db"], "cf_edits": ["new_customers", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[1]], [[3]], [[1]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Kochi' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": false, "count_orders": true}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Kochi|2025|S_s105", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Kochi", "year": 2025}, "question": "How many distinct customers from Kochi made at least one payment in 2025 (by payment date)?", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2025'", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Kochi_2025_x/cf_drop_customers.db", "train/dbs/S_s105/f_Kochi_2025_x/cf_cancelled_orders.db"], "cf_edits": ["drop_customers", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[4]], [[2]], [[4]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Kochi' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2025-01-01' AND '2025-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2025'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND substr(pay.paid_date, 1, 4) = '2025'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Indore|2024|S_s105", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Indore", "year": 2024}, "question": "Count the customers in Indore who paid anything during 2024, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Indore_2024_x/cf_dup_order.db", "train/dbs/S_s105/f_Indore_2024_x/cf_cancelled_orders.db"], "cf_edits": ["dup_order", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[1]], [[2]], [[1]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Indore' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2024-01-01' AND '2024-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2024'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F2_refunded_category|electronics|S_s105", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "electronics"}, "question": "Add up all refunds issued on orders that include any electronics item.", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'electronics')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_x_x_electronics/cf_refunds.db", "train/dbs/S_s105/f_x_x_electronics/cf_split_items.db"], "cf_edits": ["refunds", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[13199]], [[26403]], [[13199]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'electronics')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'electronics'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|grocery|S_s105", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "grocery"}, "question": "What is the total refunded amount for orders that contain at least one grocery product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'grocery')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_x_x_grocery/cf_new_customers.db", "train/dbs/S_s105/f_x_x_grocery/cf_split_payments.db"], "cf_edits": ["new_customers", "split_payments"], "cf_kinds": ["changing", "preserving"], "gold": [[[31892]], [[32551]], [[31892]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'grocery')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'grocery'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|home|S_s105", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "home"}, "question": "What is the total refunded amount for orders that contain at least one home product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'home')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_x_x_home/cf_refunds.db", "train/dbs/S_s105/f_x_x_home/cf_split_items.db"], "cf_edits": ["refunds", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[5027]], [[43709]], [[5027]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'home')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'home'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F3_net_revenue|Delhi|2024|S_s105", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Delhi", "year": 2024}, "question": "What was the net revenue from customers in Delhi in 2024?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Delhi_2024_x/cf_new_customers.db", "train/dbs/S_s105/f_Delhi_2024_x/cf_later_tier.db", "train/dbs/S_s105/f_Delhi_2024_x/cf_dup_order.db"], "cf_edits": ["new_customers", "later_tier", "dup_order"], "cf_kinds": ["changing", "preserving", "changing"], "gold": [[[39362]], [[57704]], [[39362]], [[46686]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Mumbai|2024|S_s105", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Mumbai", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Mumbai.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Mumbai_2024_x/cf_new_customers.db", "train/dbs/S_s105/f_Mumbai_2024_x/cf_split_items.db"], "cf_edits": ["new_customers", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[37066]], [[72507]], [[37066]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Jaipur|2024|S_s105", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Jaipur", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Jaipur.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Jaipur_2024_x/cf_refunds.db", "train/dbs/S_s105/f_Jaipur_2024_x/cf_superseded_tier.db"], "cf_edits": ["refunds", "superseded_tier"], "cf_kinds": ["changing", "preserving"], "gold": [[[23823]], [[21059]], [[23823]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Jaipur|2025|S_s105", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Jaipur", "year": 2025}, "question": "Compute net revenue for 2025 from customers based in Jaipur.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Jaipur_2025_x/cf_refunds.db", "train/dbs/S_s105/f_Jaipur_2025_x/cf_cancelled_orders.db"], "cf_edits": ["refunds", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[4005]], [[1471]], [[4005]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Jaipur' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Kochi|2024|S_s105", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Kochi", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Kochi.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s105/base.db", "train/dbs/S_s105/f_Kochi_2024_x/cf_refunds.db", "train/dbs/S_s105/f_Kochi_2024_x/cf_cancelled_orders.db"], "cf_edits": ["refunds", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[4662]], [[1781]], [[4662]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F1_paying_customers|Indore|2025|S_s106", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Indore", "year": 2025}, "question": "Count the customers in Indore who paid anything during 2025, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2025'", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Indore_2025_x/cf_new_customers.db", "train/dbs/S_s106/f_Indore_2025_x/cf_split_payments.db"], "cf_edits": ["new_customers", "split_payments"], "cf_kinds": ["changing", "preserving"], "gold": [[[4]], [[5]], [[4]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Indore' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2025-01-01' AND '2025-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2025'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND substr(pay.paid_date, 1, 4) = '2025'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F1_paying_customers|Surat|2025|S_s106", "template": "F1_paying_customers", "family": "F1", "split": "train", "params": {"city": "Surat", "year": 2025}, "question": "Count the customers in Surat who paid anything during 2025, using the payment date.", "gold_sql": "SELECT COUNT(DISTINCT o.customer_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2025'", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Surat_2025_x/cf_dup_order.db", "train/dbs/S_s106/f_Surat_2025_x/cf_superseded_tier.db"], "cf_edits": ["dup_order", "superseded_tier"], "cf_kinds": ["changing", "preserving"], "gold": [[[3]], [[4]], [[3]]], "paraphrases": ["SELECT COUNT(*) FROM customers c WHERE c.city = 'Surat' AND EXISTS (SELECT 1 FROM payments pay JOIN orders o ON o.order_id = pay.order_id WHERE o.customer_id = c.customer_id AND pay.paid_date BETWEEN '2025-01-01' AND '2025-12-31')"], "mutants": {"count_rows": "SELECT COUNT(*) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2025'", "count_orders": "SELECT COUNT(DISTINCT pay.order_id) FROM payments pay JOIN orders o ON o.order_id = pay.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND substr(pay.paid_date, 1, 4) = '2025'"}, "mutant_blind": {"count_rows": false, "count_orders": false}, "mutant_caught": {"count_rows": true, "count_orders": true}, "mutant_catchable": {"count_rows": true, "count_orders": true}}
{"id": "F2_refunded_category|books|S_s106", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "books"}, "question": "What is the total refunded amount for orders that contain at least one books product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'books')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_x_x_books/cf_new_customers.db", "train/dbs/S_s106/f_x_x_books/cf_split_items.db"], "cf_edits": ["new_customers", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[18932]], [[34695]], [[18932]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'books')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'books'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|toys|S_s106", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "toys"}, "question": "Add up all refunds issued on orders that include any toys item.", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'toys')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_x_x_toys/cf_refunds.db", "train/dbs/S_s106/f_x_x_toys/cf_cancelled_orders.db"], "cf_edits": ["refunds", "cancelled_orders"], "cf_kinds": ["changing", "preserving"], "gold": [[[19169]], [[51228]], [[19169]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'toys')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'toys'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F2_refunded_category|apparel|S_s106", "template": "F2_refunded_category", "family": "F2", "split": "train", "params": {"category": "apparel"}, "question": "What is the total refunded amount for orders that contain at least one apparel product?", "gold_sql": "SELECT SUM(r.amount) FROM refunds r WHERE r.order_id IN (SELECT oi.order_id FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'apparel')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_x_x_apparel/cf_drop_customers.db", "train/dbs/S_s106/f_x_x_apparel/cf_split_items.db"], "cf_edits": ["drop_customers", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[21939]], [[5547]], [[21939]]], "paraphrases": ["SELECT SUM(r.amount) FROM refunds r WHERE EXISTS (SELECT 1 FROM order_items oi JOIN products p ON p.product_id = oi.product_id WHERE oi.order_id = r.order_id AND p.category = 'apparel')"], "mutants": {"join_fanout": "SELECT SUM(r.amount) FROM refunds r JOIN order_items oi ON oi.order_id = r.order_id JOIN products p ON p.product_id = oi.product_id WHERE p.category = 'apparel'"}, "mutant_blind": {"join_fanout": true}, "mutant_caught": {"join_fanout": true}, "mutant_catchable": {"join_fanout": true}}
{"id": "F3_net_revenue|Delhi|2024|S_s106", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Delhi", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Delhi.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Delhi_2024_x/cf_refunds.db", "train/dbs/S_s106/f_Delhi_2024_x/cf_adjustments.db"], "cf_edits": ["refunds", "adjustments"], "cf_kinds": ["changing", "preserving"], "gold": [[[43594]], [[29271]], [[43594]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Delhi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Mumbai|2025|S_s106", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Mumbai", "year": 2025}, "question": "What was the net revenue from customers in Mumbai in 2025?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Mumbai_2025_x/cf_refunds.db", "train/dbs/S_s106/f_Mumbai_2025_x/cf_adjustments.db"], "cf_edits": ["refunds", "adjustments"], "cf_kinds": ["changing", "preserving"], "gold": [[[23207]], [[19659]], [[23207]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Mumbai' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Kochi|2024|S_s106", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Kochi", "year": 2024}, "question": "Compute net revenue for 2024 from customers based in Kochi.", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Kochi_2024_x/cf_refunds.db", "train/dbs/S_s106/f_Kochi_2024_x/cf_split_items.db"], "cf_edits": ["refunds", "split_items"], "cf_kinds": ["changing", "preserving"], "gold": [[[38231]], [[22990]], [[38231]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Kochi' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Indore|2025|S_s106", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Indore", "year": 2025}, "question": "What was the net revenue from customers in Indore in 2025?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Indore_2025_x/cf_refunds.db", "train/dbs/S_s106/f_Indore_2025_x/cf_later_tier.db"], "cf_edits": ["refunds", "later_tier"], "cf_kinds": ["changing", "preserving"], "gold": [[[46802]], [[44705]], [[46802]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2025'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Indore' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2025')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": false}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}
{"id": "F3_net_revenue|Surat|2024|S_s106", "template": "F3_net_revenue", "family": "F3", "split": "train", "params": {"city": "Surat", "year": 2024}, "question": "What was the net revenue from customers in Surat in 2024?", "gold_sql": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024')", "ordered": false, "dbs": ["train/dbs/S_s106/base.db", "train/dbs/S_s106/f_Surat_2024_x/cf_new_customers.db", "train/dbs/S_s106/f_Surat_2024_x/cf_later_tier.db", "train/dbs/S_s106/f_Surat_2024_x/cf_refunds.db"], "cf_edits": ["new_customers", "later_tier", "refunds"], "cf_kinds": ["changing", "preserving", "changing"], "gold": [[[42052]], [[85495]], [[42052]], [[33505]]], "paraphrases": ["SELECT SUM(x.gross) - SUM(x.ref) FROM (SELECT o.order_id, (SELECT SUM(i.quantity * i.unit_price) FROM order_items i WHERE i.order_id = o.order_id) AS gross, (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r WHERE r.order_id = o.order_id) AS ref FROM orders o JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024') x"], "mutants": {"missing_refunds": "SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND o.status <> 'cancelled' AND substr(o.order_date, 1, 4) = '2024'", "no_status_filter": "SELECT (SELECT SUM(oi.quantity * oi.unit_price) FROM order_items oi JOIN orders o ON o.order_id = oi.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024') - (SELECT COALESCE(SUM(r.amount), 0) FROM refunds r JOIN orders o ON o.order_id = r.order_id JOIN customers c ON c.customer_id = o.customer_id WHERE c.city = 'Surat' AND 1 = 1 AND substr(o.order_date, 1, 4) = '2024')"}, "mutant_blind": {"missing_refunds": true, "no_status_filter": true}, "mutant_caught": {"missing_refunds": true, "no_status_filter": true}, "mutant_catchable": {"missing_refunds": true, "no_status_filter": true}}