category
stringclasses
110 values
domain
stringclasses
2 values
family_id
stringlengths
24
24
gold
stringclasses
4 values
id
stringlengths
64
64
language
stringclasses
1 value
license
stringclasses
1 value
query
stringlengths
48
349
questions
stringlengths
551
1.53k
result
stringlengths
2
19.1k
source
stringclasses
3 values
split
stringclasses
1 value
sql
stringlengths
42
275
sql_parameters
stringlengths
2
35
state
stringlengths
231
626
task
stringclasses
1 value
single_table/or/ranked
sensor
779ccaba27a1674613f65598
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
d7402e8b425b3a48c9409b29353796e5458401926e86b5d4625561afad2f6636
en
CC-BY-4.0
Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 52.59775), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[6.63763,52.59775],\"sql\":\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\"}","plan_2":"{\"parameters\":[6.63763,52.59775],\"sql\":\"SELECT valve, COUNT(*) AS value F...
[[100,2716.9452],[80,2728.44763],[90,2736.7313]]
hydraulic
train
SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ? OR ts1_mean > ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3
[6.63763,52.59775]
{"question":"Return the maximum of eps1_mean for hydraulic cycles where (fs1_mean is at most 6.63763 or ts1_mean is greater than 52.59775), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER...
text_to_sql_plan_selection
join/date/or/ranked
commerce
9994d6961a400ae2962ca892
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
3a6f6e50ce44d3f0c61d404d2bc08123655721c7bb6b13c4a0c90ccefb0672af
en
CC-BY-4.0
Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '2010-12-02'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[49.95,\"2010-12-02\"],\"sql\":\"SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? OR i.invoice_date < ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\"}","plan_2":"{\"p...
[["Canada",1.25],["USA",2.55],["Cyprus",7.95]]
online_retail_ii
train
SELECT i.country, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price <= ? OR i.invoice_date < ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3
[49.95,"2010-12-02"]
{"question":"Return the maximum of l.unit_price for retail lines joined to their invoices where (l.unit_price is at most 49.95 or i.invoice_date is before '2010-12-02'), grouped by i.country; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","schema":{"retail_invoices":{"cou...
text_to_sql_plan_selection
single_table/and/ranked
commerce
de893db9b5f3722d1d230cbd
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
b49aae24ee13e0cb746aaed773e786c9c64f59a485d9f2d1547ee2203921a080
en
CC-BY-4.0
Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 472.4166667), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[7,472.4166667],\"sql\":\"SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\"}","plan_2":"{\"parameters\":[7,472.4166667],\"sql\":\"SELECT rev...
[[0,0],[1,0]]
online_shoppers
train
SELECT revenue, MIN(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5
[7,472.4166667]
{"question":"Return the minimum of product_related for shopping sessions where (administrative is at most 7 and product_duration is at most 472.4166667), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INT...
text_to_sql_plan_selection
single_table/and/grouped
commerce
006fdad1766bf95f5ee76bc2
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
ebf21b06be73523a108229bb049382f4999a774ba89566e9f048bedcff3f22f6
en
CC-BY-4.0
Return the minimum of administrative for shopping sessions where (month equals 'Feb' and product_related is greater than 31), grouped by revenue, ordered by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Feb\",31],\"sql\":\"SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? OR product_related > ?) GROUP BY revenue ORDER BY revenue ASC\"}","plan_2":"{\"parameters\":[\"Feb\",31],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shopping_se...
[[0,0],[1,10]]
online_shoppers
train
SELECT revenue, MIN(administrative) AS value FROM shopping_sessions WHERE (month = ? AND product_related > ?) GROUP BY revenue ORDER BY revenue ASC
["Feb",31]
{"question":"Return the minimum of administrative for shopping sessions where (month equals 'Feb' and product_related is greater than 31), grouped by revenue, ordered by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","re...
text_to_sql_plan_selection
single_table/or/having
sensor
8e0cf4ce2d3149385ef190a4
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
73eab04e373c67ab86222c2f23d4958cd667a1781ce53bf28a61e55b78a4802c
en
CC-BY-4.0
Return the maximum of vs1_mean for hydraulic cycles where (accumulator equals 115 or ps1_mean is greater than 160.79926), grouped by cooler, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[115,160.79926,2],\"sql\":\"SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5\"}","plan_2":"{\"parameters\":[115,160.79926,2],\"sql\":\"SELECT co...
[[3,0.82955],[20,0.6943],[100,0.6431]]
hydraulic
train
SELECT cooler, MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 5
[115,160.79926,2]
{"question":"Return the maximum of vs1_mean for hydraulic cycles where (accumulator equals 115 or ps1_mean is greater than 160.79926), grouped by cooler, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","schema":{"hydraulic_c...
text_to_sql_plan_selection
join/and/grouped
commerce
cbb9acfd737fb6669c4551a1
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
1a6df7f61defda6ed235b7a61876917ec443415e453e8a8ac7540324fc72c8ea
en
CC-BY-4.0
Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 1800 and l.unit_price is greater than 8.5), grouped by i.invoice_date, ordered by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1800,8.5],\"sql\":\"SELECT i.invoice_date, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\"}","plan_2":"{\"parameters\":[1800,8.5]...
[["2009-12-02",12],["2009-12-03",1],["2009-12-04",1],["2009-12-05",14],["2009-12-06",2],["2009-12-07",10],["2009-12-08",1],["2009-12-09",36],["2009-12-10",2],["2009-12-11",3],["2009-12-13",36],["2009-12-14",8],["2009-12-15",50],["2009-12-16",4],["2009-12-17",16],["2009-12-18",48],["2009-12-20",9],["2009-12-21",1],["200...
online_retail_ii
train
SELECT i.invoice_date, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? AND l.unit_price > ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC
[1800,8.5]
{"question":"Return the maximum of l.quantity for retail lines joined to their invoices where (l.quantity is at most 1800 and l.unit_price is greater than 8.5), grouped by i.invoice_date, ordered by i.invoice_date ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_d...
text_to_sql_plan_selection
single_table/date/or/having
commerce
e9129b3763322e1efcbb2392
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
359447e54942f708f0b2f03dbf0894244753e0d0ddd9f2a961a0a43a70aa67f2
en
CC-BY-4.0
Return the minimum of quantity for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2011-09-29'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[49.95,\"2011-09-29\",10],\"sql\":\"SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[49.95,\"2011-09-29\",10],\"...
[["Austria",1],["Belgium",1],["EIRE",1]]
online_retail_ii
train
SELECT country, MIN(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date < ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3
[49.95,"2011-09-29",10]
{"question":"Return the minimum of quantity for retail invoice lines where (unit_price is greater than 49.95 or invoice_date is before '2011-09-29'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","sche...
text_to_sql_plan_selection
single_table/ranked
commerce
1d170b2db5fde57f9535d5cd
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
6b91c0259b7087bb8f13c105d51c6cce35c8bc045adb2480db0fc57c2526f448
en
CC-BY-4.0
Return the maximum of administrative for shopping sessions where (traffic_type equals 12), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[12],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3\"}","plan_2":"{\"parameters\":[12],\"sql\":\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE ...
[[0,0]]
online_shoppers
train
SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3
[12]
{"question":"Return the maximum of administrative for shopping sessions where (traffic_type equals 12), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","pro...
text_to_sql_plan_selection
single_table/and/aggregate
sensor
077d2375b13323c28574b94d
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
b3217fb309f7c23527619fbc52f0ca784991c810a36ded98a3d90929e6dbae99
en
CC-BY-4.0
Return the maximum of eps1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[20,172.56377],\"sql\":\"SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? OR ps1_mean <= ?)\"}","plan_2":"{\"parameters\":[20,172.56377],\"sql\":\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?)\"}","plan_3":"{\"par...
[[2497.67583]]
hydraulic
train
SELECT MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (cooler = ? AND ps1_mean <= ?)
[20,172.56377]
{"question":"Return the maximum of eps1_mean for hydraulic cycles where (cooler equals 20 and ps1_mean is at most 172.56377).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage":"INTEGER","...
text_to_sql_plan_selection
single_table/having
sensor
94a71c11ae7cf6a086045edb
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
8761687930454fb854bd40332365030d6a0398c3d41a1c99d0a22a6d0efc4d06
en
CC-BY-4.0
Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), grouped by cooler, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2480.92663,10],\"sql\":\"SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value DESC, cooler ASC LIMIT 3\"}","plan_2":"{\"parameters\":[2480.92663,10],\"sql\":\"SELECT cooler, MIN(ps2_mean) AS ...
[[20,106.62654],[100,108.37049],[3,108.52974]]
hydraulic
train
SELECT cooler, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3
[2480.92663,10]
{"question":"Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), grouped by cooler, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","schema":{"hydraulic_cycles":{"accumulator":"I...
text_to_sql_plan_selection
single_table/and/having
sensor
1daa2bf2c7cc213bec6d7e55
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
01c68f2764ecc261d182a70c500edf85418cd4a0591927cc03c8fea416a35d49
en
CC-BY-4.0
Return the average of vs1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 and ts1_mean is at most 52.59775), grouped by cooler, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[107.17314,52.59775,10],\"sql\":\"SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? OR ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3\"}","plan_2":"{\"parameters\":[107.17314,52.59775,10],\"sql\":\"...
[[20,0.6140279695431472],[3,0.6400233333333334]]
hydraulic
train
SELECT cooler, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean <= ? AND ts1_mean <= ?) GROUP BY cooler HAVING COUNT(*) >= ? ORDER BY value ASC, cooler ASC LIMIT 3
[107.17314,52.59775,10]
{"question":"Return the average of vs1_mean for hydraulic cycles where (ps2_mean is at most 107.17314 and ts1_mean is at most 52.59775), grouped by cooler, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","schema":{"hydraulic...
text_to_sql_plan_selection
single_table/ranked
sensor
9ea96637aaf7da5042731c14
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
739b18e784f69e3edf561955fe76f8eba8f5be29f9b72b00a738acab3b8d3584
en
CC-BY-4.0
Return the sum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2480.92663],\"sql\":\"SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 5\"}","plan_2":"{\"parameters\":[2480.92663],\"sql\":\"SELECT cooler, COUNT(*) AS value FROM hydraulic_cycles WHERE...
[[100,80736.10154],[3,30496.80534],[20,12219.09081]]
hydraulic
train
SELECT cooler, SUM(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY cooler ORDER BY value DESC, cooler ASC LIMIT 5
[2480.92663]
{"question":"Return the sum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2480.92663), grouped by cooler; return at most 5 groups ordered by aggregate value DESC, breaking ties by cooler ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_m...
text_to_sql_plan_selection
single_table/and/grouped
commerce
2701a0b26bc47530159aa3a7
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
84f2e9770ecf5dd7c30f1f665aadf4cdafa0d437de7bc25300b5d0ebce520d42
en
CC-BY-4.0
Return the sum of product_related for shopping sessions where (month equals 'Nov' and product_related is at most 226), grouped by revenue, ordered by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Nov\",226],\"sql\":\"SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\"}","plan_2":"{\"parameters\":[\"Nov\",226],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shoppin...
[[0,73004],[1,43398]]
online_shoppers
train
SELECT revenue, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC
["Nov",226]
{"question":"Return the sum of product_related for shopping sessions where (month equals 'Nov' and product_related is at most 226), grouped by revenue, ordered by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"...
text_to_sql_plan_selection
single_table/and/ranked
commerce
ca2041c22ac7e48bb165a100
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
cac2613fada7cf6e4db8b8a82944f55d75b2e15e6b38ec739d0bb2c9c7cc1c47
en
CC-BY-4.0
Return the sum of unit_price for retail invoice lines where (country equals 'Canada' and unit_price is at most 0.55), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Canada\",0.55],\"sql\":\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\"}","plan_2":"{\"parameters\":[],\"sql\":\"SELECT country, SUM(unit_price) AS value FROM ...
[]
online_retail_ii
train
SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5
["Canada",0.55]
{"question":"Return the sum of unit_price for retail invoice lines where (country equals 'Canada' and unit_price is at most 0.55), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":...
text_to_sql_plan_selection
single_table/grouped
commerce
dccddafaebc1652c6a057a31
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
cdb04b48406a8e024b8a6bb88716427da8509b442733a3ba4fb38f1600fcf4db
en
CC-BY-4.0
Return the number of rows for shopping sessions where (product_duration is at most 167.5), grouped by month, ordered by month ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[167.5],\"sql\":\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month ORDER BY month ASC\"}","plan_2":"{\"parameters\":[167.5],\"sql\":\"SELECT month, SUM(administrative) AS value FROM shopping_sessions WHERE (product_duratio...
[["Aug",84],["Dec",407],["Feb",85],["Jul",101],["June",88],["Mar",549],["May",859],["Nov",549],["Oct",111],["Sep",83]]
online_shoppers
train
SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (product_duration <= ?) GROUP BY month ORDER BY month ASC
[167.5]
{"question":"Return the number of rows for shopping sessions where (product_duration is at most 167.5), grouped by month, ordered by month ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","se...
text_to_sql_plan_selection
join/null/having
commerce
5569498f2bd149ce75bf95b1
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
063f9debfba3b3bc370dd6382e7e54d4c5b8d1c8b43766ab050cc54275bdf857
en
CC-BY-4.0
Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id is missing), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[],\"sql\":\"SELECT i.invoice_date, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NULL) GROUP BY i.invoice_date ORDER BY value ASC, i.invoice_date ASC LIMIT 3\"}","plan_2":"{\"parameters\":[10],\"sql\...
[["2010-10-19",1.95],["2009-12-06",2.95],["2010-04-16",2.95]]
online_retail_ii
train
SELECT i.invoice_date, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id IS NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3
[10]
{"question":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.customer_id is missing), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.","schema":{"retail...
text_to_sql_plan_selection
join/date/and/having
commerce
54be05cfe7abf1fc7afa98fb
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
6d80c32724f67be590be8dc1c4b19959141f71b043e6515f28ec8aad36c3688a
en
CC-BY-4.0
Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 and i.invoice_date is on or after '2010-02-18'), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ...
{"plan":{"criteria":{"plan_1":"{\"parameters\":[25,\"2010-02-18\",10],\"sql\":\"SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3...
[["Sweden",1.1271739130434784],["France",1.5635714285714286],["Germany",1.5804]]
online_retail_ii
train
SELECT i.country, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? AND i.invoice_date >= ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3
[25,"2010-02-18",10]
{"question":"Return the average of l.unit_price for retail lines joined to their invoices where (l.quantity is greater than 25 and i.invoice_date is on or after '2010-02-18'), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties ...
text_to_sql_plan_selection
single_table/or/ranked
sensor
f0cadcc04e2d7ca41a9e5d2d
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
7109d24b582bd29df15d3aa7d60308ec0f4f77f6581ecd2a1d2dee79f48583be
en
CC-BY-4.0
Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or ts1_mean is at most 35.56605), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2544.76,35.56605],\"sql\":\"SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5\"}","plan_2":"{\"parameters\":[2544.76,35.56605],\"sql\":\"SELECT pump...
[[0,108.96724],[1,108.63409],[2,108.41435]]
hydraulic
train
SELECT pump_leakage, MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR ts1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5
[2544.76,35.56605]
{"question":"Return the minimum of ps2_mean for hydraulic cycles where (eps1_mean is greater than 2544.76 or ts1_mean is at most 35.56605), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","c...
text_to_sql_plan_selection
join/and/aggregate
commerce
bdb6539b9a750c1ff14fdf5a
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
076bfa481dcb3a9527552ccaa2a2b589b9b7a22584588d3ed2996e012e11fc1a
en
CC-BY-4.0
Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"12353\",25],\"sql\":\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?)\"}","plan_2":"{\"parameters\":[\"12353\",25],\"sql\":\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retai...
[[0]]
online_retail_ii
train
SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.quantity > ?)
["12353",25]
{"question":"Return the number of rows for retail lines joined to their invoices where (i.customer_id equals '12353' and l.quantity is greater than 25).","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_...
text_to_sql_plan_selection
single_table/having
commerce
e07efdb4f8e7bbe7bdd18668
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
094dee5a0d97ae17d1812139ff356b963d6e795134395e40147292c60687ffca
en
CC-BY-4.0
Return the minimum of product_duration for shopping sessions where (product_duration is greater than 1564.0), grouped by revenue, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1564.0,10],\"sql\":\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value DESC, revenue ASC LIMIT 3\"}","plan_2":"{\"parameters\":[1564.0,10],\"sql\":\"SELECT revenue, COUNT...
[[0,1564.161905],[1,1565.958333]]
online_shoppers
train
SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (product_duration > ?) GROUP BY revenue HAVING COUNT(*) >= ? ORDER BY value ASC, revenue ASC LIMIT 3
[1564.0,10]
{"question":"Return the minimum of product_duration for shopping sessions where (product_duration is greater than 1564.0), grouped by revenue, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","schema":{"shopping_sessions":{"...
text_to_sql_plan_selection
single_table/and/grouped
sensor
11a8a3e9b7bcb95e112ab9f9
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
c4e6914f66489242fc7de14a691409067b78d9473da733014b1a23f2e42451c8
en
CC-BY-4.0
Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and fs1_mean is greater than 6.68926), grouped by valve, ordered by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[172.56377,6.68926],\"sql\":\"SELECT valve, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR fs1_mean > ?) GROUP BY valve ORDER BY valve ASC\"}","plan_2":"{\"parameters\":[172.56377,6.68926],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycle...
[[80,36.2543],[90,44.60135],[100,41.46363]]
hydraulic
train
SELECT valve, MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND fs1_mean > ?) GROUP BY valve ORDER BY valve ASC
[172.56377,6.68926]
{"question":"Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is at most 172.56377 and fs1_mean is greater than 6.68926), grouped by valve, ordered by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","...
text_to_sql_plan_selection
single_table/or/ranked
commerce
b82877e4750799b6c29a2785
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
8a8fdb7a620415388454d0ab1850393f6212af98d11bc2b32fa2cd8b796487e9
en
CC-BY-4.0
Return the minimum of administrative for shopping sessions where (administrative is at most 23 or product_related is at most 340), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[23,340],\"sql\":\"SELECT visitor_type, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\"}","plan_2":"{\"parameters\":[23,340],\"sql\":\"SELECT visitor_type, SU...
[["New_Visitor",0],["Other",0],["Returning_Visitor",0]]
online_shoppers
train
SELECT visitor_type, MIN(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_related <= ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5
[23,340]
{"question":"Return the minimum of administrative for shopping sessions where (administrative is at most 23 or product_related is at most 340), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","schema":{"shopping_sessions":{"administrative":"INT...
text_to_sql_plan_selection
single_table/aggregate
commerce
3d1e2ea9f48591a08c231e8e
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
b20862b1fbef593b0614891e404398759d9cc6c19bf005e5c2f65b9cc3b32a0f
en
CC-BY-4.0
Return the number of rows for shopping sessions where (visitor_type equals 'Returning_Visitor').
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Returning_Visitor\"],\"sql\":\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (visitor_type = ?)\"}","plan_2":"{\"parameters\":[\"Returning_Visitor\"],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?)\"}","plan_3":"{\"p...
[[10551]]
online_shoppers
train
SELECT COUNT(*) AS value FROM shopping_sessions WHERE (visitor_type = ?)
["Returning_Visitor"]
{"question":"Return the number of rows for shopping sessions where (visitor_type equals 'Returning_Visitor').","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","traffic_type":"INTE...
text_to_sql_plan_selection
single_table/having
sensor
c67f6184cc85904a857876f1
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
6d0384655680b77e9ba450fb50386f8d353538c1e50710b3f224204635cbc0c1
en
CC-BY-4.0
Return the number of rows for hydraulic cycles where (vs1_mean is greater than 0.64278), grouped by valve, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[0.64278,10],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 3\"}","plan_2":"{\"parameters\":[0.64278,10],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_...
[[90,102],[80,112],[73,119]]
hydraulic
train
SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (vs1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value ASC, valve ASC LIMIT 3
[0.64278,10]
{"question":"Return the number of rows for hydraulic cycles where (vs1_mean is greater than 0.64278), grouped by valve, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","co...
text_to_sql_plan_selection
single_table/ranked
sensor
34b5308cf3db3277d7e63f0a
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
1f6cb31e4298b0ca80f9abca4698dc7883f00015323b5028bbdeffbaf309b1db
en
CC-BY-4.0
Return the average of eps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2480.92663],\"sql\":\"SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\"}","plan_2":"{\"parameters\":[2480.92663],\"sql\":\"SELECT pump_leakage, COUNT(*) AS value F...
[[1,2451.73223990991],[2,2446.202262631579],[0,2425.437888193384]]
hydraulic
train
SELECT pump_leakage, AVG(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5
[2480.92663]
{"question":"Return the average of eps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTE...
text_to_sql_plan_selection
join/or/grouped
commerce
0bbb6d6a2012e07c04b6017f
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
92a8047c8b521e0b404f1dceab01ec58c8ac6fbc80c958057172c4d84edddb13
en
CC-BY-4.0
Return the minimum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 0.55), grouped by i.invoice_date, ordered by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"12364\",0.55],\"sql\":\"SELECT i.invoice_date, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\"}","plan_2":"{\"parameters\"...
[["2009-12-01",0.42],["2009-12-02",0.21],["2009-12-03",0.21],["2009-12-04",0.29],["2009-12-05",0.06],["2009-12-06",0.19],["2009-12-07",0.42],["2009-12-08",0.42],["2009-12-09",0.19],["2009-12-10",0.19],["2009-12-11",0.42],["2009-12-13",0.38],["2009-12-14",0.19],["2009-12-15",0.21],["2009-12-16",0.34],["2009-12-17",0.29]...
online_retail_ii
train
SELECT i.invoice_date, MIN(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.unit_price <= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC
["12364",0.55]
{"question":"Return the minimum of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12364' or l.unit_price is at most 0.55), grouped by i.invoice_date, ordered by i.invoice_date ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_da...
text_to_sql_plan_selection
single_table/or/grouped
sensor
659a50365fbee2475b8b593c
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
f6c81fa081158579f8c064c0629c7e36558df0bde59e502388641e32b7517c9b
en
CC-BY-4.0
Return the number of rows for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is greater than 2598.8769), grouped by valve, ordered by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[160.79926,2598.8769],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY valve ORDER BY valve ASC\"}","plan_2":"{\"parameters\":[160.79926,2598.8769],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycle...
[[73,295],[80,303],[90,317],[100,848]]
hydraulic
train
SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mean > ?) GROUP BY valve ORDER BY valve ASC
[160.79926,2598.8769]
{"question":"Return the number of rows for hydraulic cycles where (ps1_mean is at most 160.79926 or eps1_mean is greater than 2598.8769), grouped by valve, ordered by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1...
text_to_sql_plan_selection
single_table/or/grouped
commerce
da0471c128292364b03128db
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
1db13a667809731ed2817421cae2192d28888055e2ac8343ac0b139bff15138c
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (country equals 'Belgium' or unit_price is at most 8.5), grouped by invoice_date, ordered by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Belgium\",8.5],\"sql\":\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\"}","plan_2":"{\"parameters\":[\"Belgium\",8.5],\"sql\":\"SELECT invoice_date, COUNT(*) AS valu...
[["2009-12-01",23.5],["2009-12-02",42.8494623655914],["2009-12-03",243.875],["2009-12-04",38.67213114754098],["2009-12-05",24.375],["2009-12-06",10.862068965517242],["2009-12-07",35.74193548387097],["2009-12-08",57.93827160493827],["2009-12-09",19.7125],["2009-12-10",33.79710144927536],["2009-12-11",10.24],["2009-12-13...
online_retail_ii
train
SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY invoice_date ORDER BY invoice_date ASC
["Belgium",8.5]
{"question":"Return the average of quantity for retail invoice lines where (country equals 'Belgium' or unit_price is at most 8.5), grouped by invoice_date, ordered by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","sto...
text_to_sql_plan_selection
single_table/or/grouped
commerce
d536fb9240dd3a5434bef1ba
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
d11798d8895bf5dc45fd0a4818129717a2df6af9863ea6a3c1e92a9c21d1cce3
en
CC-BY-4.0
Return the maximum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 2.25), grouped by invoice_date, ordered by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[25,2.25],\"sql\":\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\"}","plan_2":"{\"parameters\":[25,2.25],\"sql\":\"SELECT invoice_date, MAX(quantity) AS value FROM reta...
[["2009-12-01",58],["2009-12-02",200],["2009-12-03",80],["2009-12-04",72],["2009-12-05",24],["2009-12-06",30],["2009-12-07",96],["2009-12-08",936],["2009-12-09",48],["2009-12-10",48],["2009-12-11",40],["2009-12-13",72],["2009-12-14",72],["2009-12-15",144],["2009-12-16",96],["2009-12-17",216],["2009-12-18",48],["2009-12...
online_retail_ii
train
SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC
[25,2.25]
{"question":"Return the maximum of quantity for retail invoice lines where (quantity is at most 25 or unit_price is greater than 2.25), grouped by invoice_date, ordered by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER",...
text_to_sql_plan_selection
single_table/ranked
sensor
dece44d5026c8b9b4ee0321c
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
86d4149dcc50ae8253ee70bc5032c24b5be39b189fc24e897618d626f63916d9
en
CC-BY-4.0
Return the maximum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.54422), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[0.54422],\"sql\":\"SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 5\"}","plan_2":"{\"parameters\":[0.54422],\"sql\":\"SELECT pump_leakage, MAX(fs1_mean) AS value FROM...
[[0,6.70812],[1,6.5301],[2,6.43777]]
hydraulic
train
SELECT pump_leakage, MAX(fs1_mean) AS value FROM hydraulic_cycles WHERE (vs1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 5
[0.54422]
{"question":"Return the maximum of fs1_mean for hydraulic cycles where (vs1_mean is at most 0.54422), grouped by pump_leakage; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER",...
text_to_sql_plan_selection
single_table/and/grouped
commerce
36a82063856ac788612f93eb
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
f0e7593e1908d4339c129ed07123bd1afe5384eab305bc920dfdcc31f31b94f9
en
CC-BY-4.0
Return the sum of product_duration for shopping sessions where (administrative is greater than 7 and product_duration is at most 167.5), grouped by month, ordered by month ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[7,167.5],\"sql\":\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration <= ?) GROUP BY month ORDER BY month ASC\"}","plan_2":"{\"parameters\":[7,167.5],\"sql\":\"SELECT month, COUNT(*) AS value FROM shopping_ses...
[["Aug",505.8166667],["Dec",879.24999997],["June",135.0666667],["Mar",73.21428571],["May",400.25],["Nov",757.7166667],["Oct",658.4499999],["Sep",340.56190476999996]]
online_shoppers
train
SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration <= ?) GROUP BY month ORDER BY month ASC
[7,167.5]
{"question":"Return the sum of product_duration for shopping sessions where (administrative is greater than 7 and product_duration is at most 167.5), grouped by month, ordered by month ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEG...
text_to_sql_plan_selection
single_table/or/aggregate
commerce
1af09ce49f20cc93f4027e6a
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
310773fb2d684c09490624986da98d221a0b905d8aede35b40a7ef3b9f9d6f6f
en
CC-BY-4.0
Return the sum of product_related for shopping sessions where (administrative is at most 13 or product_duration is greater than 1564.0).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[13,1564.0],\"sql\":\"SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?)\"}","plan_2":"{\"parameters\":[13,1564.0],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_...
[[389985]]
online_shoppers
train
SELECT SUM(product_related) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?)
[13,1564.0]
{"question":"Return the sum of product_related for shopping sessions where (administrative is at most 13 or product_duration is greater than 1564.0).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","se...
text_to_sql_plan_selection
single_table/and/having
sensor
4067f1488d8571e773e87685
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
653e2d2e9db21553f88507ce5032d17fb8078d2b01838a237317e4cd180cd914
en
CC-BY-4.0
Return the minimum of vs1_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), grouped by pump_leakage, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[100,156.56746,2],\"sql\":\"SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\"}","plan_2":"{\"parameters\":[100,156.56746],\"s...
[[1,0.62832],[0,0.62297]]
hydraulic
train
SELECT pump_leakage, MIN(vs1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND ps1_mean <= ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5
[100,156.56746,2]
{"question":"Return the minimum of vs1_mean for hydraulic cycles where (accumulator equals 100 and ps1_mean is at most 156.56746), grouped by pump_leakage, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.","schema":{"hyd...
text_to_sql_plan_selection
single_table/ranked
commerce
cb5534479142b9f96bd8a719
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
f2710e5ee52f741886d1793bef3b19257e65e9ea962e22781f7ee67b1cbb658d
en
CC-BY-4.0
Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[4.77],\"sql\":\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[4.77],\"sql\":\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (unit_pr...
[["Poland",1],["Japan",2],["United Arab Emirates",2]]
online_retail_ii
train
SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3
[4.77]
{"question":"Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER"...
text_to_sql_plan_selection
single_table/ranked
commerce
1d170b2db5fde57f9535d5cd
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
442aca62b27d023514179039beff680bdc030d49a2831175e19102d5c665a988
en
CC-BY-4.0
Return the maximum of administrative for shopping sessions where (traffic_type equals 1), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1],\"sql\":\"SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 3\"}","plan_2":"{\"parameters\":[1],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (...
[[1,17],[0,24]]
online_shoppers
train
SELECT revenue, MAX(administrative) AS value FROM shopping_sessions WHERE (traffic_type = ?) GROUP BY revenue ORDER BY value ASC, revenue ASC LIMIT 3
[1]
{"question":"Return the maximum of administrative for shopping sessions where (traffic_type equals 1), grouped by revenue; return at most 3 groups ordered by aggregate value ASC, breaking ties by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","prod...
text_to_sql_plan_selection
single_table/ranked
commerce
4c0f2070c49a9239fc7a82f1
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
7a6af0963b872a3c87e1305415e6d3e1620b67ef6af9169cd6bbb5e948714862
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (quantity is at most 1800), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1800],\"sql\":\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 5\"}","plan_2":"{\"parameters\":[1800],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ?)...
[["Japan",135.31578947368422],["Sweden",118.23655913978494],["Channel Islands",103.41666666666667],["Netherlands",66.23728813559322],["EIRE",66.15196078431373]]
online_retail_ii
train
SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (quantity <= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5
[1800]
{"question":"Return the average of quantity for retail invoice lines where (quantity is at most 1800), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","...
text_to_sql_plan_selection
single_table/or/aggregate
sensor
4a30ef772b07e8c8b7a7c58e
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
e46201263e3582ac46845f66becd4afea0ab65b8ae54b4a88faf536766eecaed
en
CC-BY-4.0
Return the maximum of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143 or fs1_mean is at most 6.68926).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2398.143,6.68926],\"sql\":\"SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND fs1_mean <= ?)\"}","plan_2":"{\"parameters\":[2398.143,6.68926],\"sql\":\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR fs1_mean <= ?)\"}","pl...
[[0.83907]]
hydraulic
train
SELECT MAX(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR fs1_mean <= ?)
[2398.143,6.68926]
{"question":"Return the maximum of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143 or fs1_mean is at most 6.68926).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakag...
text_to_sql_plan_selection
single_table/ranked
sensor
7404d2dc46bf06011cef5ba1
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
f54a8423f516a4a3fcfd2656fd1457d8e0192f1ab4c29762c8fcf265943ac5e8
en
CC-BY-4.0
Return the maximum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2480.92663],\"sql\":\"SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value DESC, valve ASC LIMIT 3\"}","plan_2":"{\"parameters\":[2480.92663],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE ...
[[80,2480.5479],[73,2480.6025],[90,2480.91643]]
hydraulic
train
SELECT valve, MAX(eps1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean <= ?) GROUP BY valve ORDER BY value ASC, valve ASC LIMIT 3
[2480.92663]
{"question":"Return the maximum of eps1_mean for hydraulic cycles where (eps1_mean is at most 2480.92663), grouped by valve; return at most 3 groups ordered by aggregate value ASC, breaking ties by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean...
text_to_sql_plan_selection
join/date/aggregate
commerce
146be0490ed426c280fff260
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
80ca0abc1cef4439ef43fb765edb3304b456989a458af359ad24aa63921505b1
en
CC-BY-4.0
Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10').
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"2011-05-10\"],\"sql\":\"SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?)\"}","plan_2":"{\"parameters\":[\"2011-05-10\"],\"sql\":\"SELECT COUNT(*) AS value FROM retail_lines l JOIN retail_invoi...
[[10000]]
online_retail_ii
train
SELECT MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?)
["2011-05-10"]
{"question":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.invoice_date is before '2011-05-10').","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line...
text_to_sql_plan_selection
join/distinct_invoice/or/ranked
commerce
dee4cddc3dfbec8317aab6c5
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
19fc5f0e568b551498ab7a294301dfeee8c1dc90a25483280b62dd0d83870ae8
en
CC-BY-4.0
Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is at most 92), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Austria\",92],\"sql\":\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\"}","p...
[["2010-12-01",66],["2010-12-02",62],["2010-12-09",50],["2010-12-08",46],["2010-11-25",32]]
online_retail_ii
train
SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR l.quantity <= ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5
["Austria",92]
{"question":"Return the number of distinct i.invoice for retail lines joined to their invoices where (i.country equals 'Austria' or l.quantity is at most 92), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","schema":{"retail_invoices":{"cou...
text_to_sql_plan_selection
single_table/ranked
sensor
9515f0a2d16b39758bfff940
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
ebfde3db19bdc270008bab3fd81fde373145a9fb03933fa66a774442e32db543
en
CC-BY-4.0
Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 158.96089), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[158.96089],\"sql\":\"SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY value DESC, pump_leakage ASC LIMIT 3\"}","plan_2":"{\"parameters\":[158.96089],\"sql\":\"SELECT pump_leakage, COUNT(*) AS value FROM...
[[2,44.00265],[1,44.03303],[0,44.31895]]
hydraulic
train
SELECT pump_leakage, MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ?) GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3
[158.96089]
{"question":"Return the minimum of ts1_mean for hydraulic cycles where (ps1_mean is at most 158.96089), grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER"...
text_to_sql_plan_selection
single_table/and/aggregate
commerce
da5470266ba26ff364f45519
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
732ace06f813275c57851a0ae042a49f27bf18ef9f4f52c909edcde1a926991d
en
CC-BY-4.0
Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is at most 648).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Denmark\",648],\"sql\":\"SELECT MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR quantity <= ?)\"}","plan_2":"{\"parameters\":[\"Denmark\",648],\"sql\":\"SELECT COUNT(*) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)\"}","plan_3":"{\"para...
[[256]]
online_retail_ii
train
SELECT MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND quantity <= ?)
["Denmark",648]
{"question":"Return the maximum of quantity for retail invoice lines where (country equals 'Denmark' and quantity is at most 648).","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","stock_code":"TEXT","unit_price":"REAL"}}}
text_to_sql_plan_selection
single_table/having
commerce
bb0945f2c4e4460a929fc573
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
254c68eceb02da58dd9a6ccd4e889cc6df615e225758d98607557b81effa4677
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (quantity is greater than 229), grouped by invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[229,2],\"sql\":\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5\"}","plan_2":"{\"parameters\":[229,2],\"sql\":\"SELECT invoice_date, AVG(quantity) ...
[["2010-03-23",4895.111111111111],["2010-05-18",4166.666666666667],["2010-11-04",3227.0],["2009-12-03",2026.4],["2010-06-08",2000.0]]
online_retail_ii
train
SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value DESC, invoice_date ASC LIMIT 5
[229,2]
{"question":"Return the average of quantity for retail invoice lines where (quantity is greater than 229), grouped by invoice_date, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","schema":{"retail_lines":{"country":"T...
text_to_sql_plan_selection
single_table/grouped
commerce
8160ffbdc1e43f0379b51b7b
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
04dfcc92eaeac29900163db352b7a4e7846475687ad542d18a0c11b24a778f2b
en
CC-BY-4.0
Return the average of product_duration for shopping sessions where (administrative is at most 13), grouped by month, ordered by month ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[13],\"sql\":\"SELECT month, COUNT(*) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY month ORDER BY month ASC\"}","plan_2":"{\"parameters\":[13],\"sql\":\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) ...
[["Aug",1197.6863369469647],["Dec",1075.2321685848801],["Feb",471.0146472655815],["Jul",1143.3957348757647],["June",1189.0837300983567],["Mar",796.7433850065187],["May",946.1533415004236],["Nov",1692.948742906739],["Oct",1073.2816117096804],["Sep",1207.8628008950684]]
online_shoppers
train
SELECT month, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ?) GROUP BY month ORDER BY month ASC
[13]
{"question":"Return the average of product_duration for shopping sessions where (administrative is at most 13), grouped by month, ordered by month ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTE...
text_to_sql_plan_selection
single_table/and/grouped
sensor
5a66c43a46757b257f70faa2
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
b8cf5af0e3dec0c70b97c33fa1e723d84c679d61ecc9bc4cd0fe4269bb914c82
en
CC-BY-4.0
Return the minimum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is greater than 36.33327), grouped by valve, ordered by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[0,36.33327],\"sql\":\"SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC\"}","plan_2":"{\"parameters\":[0,36.33327],\"sql\":\"SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHE...
[[73,156.27905],[80,156.20046],[90,156.12875],[100,155.97478]]
hydraulic
train
SELECT valve, MIN(ps1_mean) AS value FROM hydraulic_cycles WHERE (pump_leakage = ? AND ts1_mean > ?) GROUP BY valve ORDER BY valve ASC
[0,36.33327]
{"question":"Return the minimum of ps1_mean for hydraulic cycles where (pump_leakage equals 0 and ts1_mean is greater than 36.33327), grouped by valve, ordered by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mea...
text_to_sql_plan_selection
single_table/or/aggregate
sensor
dc5da2e06e25265552574693
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
96776b8943bc5660734f59da73ec343b44886c5654901e8a3e1cfc8b059687a9
en
CC-BY-4.0
Return the sum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089 or ps2_mean is at most 107.17314).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[158.96089,107.17314],\"sql\":\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? AND ps2_mean <= ?)\"}","plan_2":"{\"parameters\":[158.96089,107.17314],\"sql\":\"SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?...
[[283825.14521]]
hydraulic
train
SELECT SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ? OR ps2_mean <= ?)
[158.96089,107.17314]
{"question":"Return the sum of ps1_mean for hydraulic cycles where (ps1_mean is greater than 158.96089 or ps2_mean is at most 107.17314).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage"...
text_to_sql_plan_selection
single_table/and/aggregate
sensor
4541715dd17d14ab0570e65b
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
96f8642c1ce58d9226730905295ebafcdb677b9c65652b676e474a25795e4dd9
en
CC-BY-4.0
Return the sum of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and eps1_mean is at most 2480.92663).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[158.27043,2480.92663],\"sql\":\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?)\"}","plan_2":"{\"parameters\":[158.27043,2480.92663],\"sql\":\"SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? OR eps1_mea...
[[409.26917]]
hydraulic
train
SELECT SUM(vs1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean <= ? AND eps1_mean <= ?)
[158.27043,2480.92663]
{"question":"Return the sum of vs1_mean for hydraulic cycles where (ps1_mean is at most 158.27043 and eps1_mean is at most 2480.92663).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage":"...
text_to_sql_plan_selection
single_table/or/having
commerce
0bb1ec1a27d78e0b16e75c04
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
8134ab8b0ff21fa0deb9f3dc79fbbbb428f2e4eb65957f38194612dd6fd151ff
en
CC-BY-4.0
Return the sum of product_related for shopping sessions where (month equals 'Dec' or traffic_type equals 14), grouped by visitor_type, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Dec\",14,10],\"sql\":\"SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3\"}","plan_2":"{\"parameters\":[\"Dec\",14,10],...
[["Other",608],["New_Visitor",5633],["Returning_Visitor",43140]]
online_shoppers
train
SELECT visitor_type, SUM(product_related) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY visitor_type HAVING COUNT(*) >= ? ORDER BY value ASC, visitor_type ASC LIMIT 3
["Dec",14,10]
{"question":"Return the sum of product_related for shopping sessions where (month equals 'Dec' or traffic_type equals 14), grouped by visitor_type, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","schema":{"shopping_se...
text_to_sql_plan_selection
join/null/or/having
commerce
ec0a5c4924a87c4be032b465
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
524eb421d4e432a8cd1d0bb99294dbe45f305c45098651502da272e0db532ff5
en
CC-BY-4.0
Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Austria\",10],\"sql\":\"SELECT i.invoice_date, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_dat...
[["2010-08-01",12],["2011-02-09",12],["2010-01-26",24]]
online_retail_ii
train
SELECT i.invoice_date, MAX(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3
["Austria",10]
{"question":"Return the maximum of l.quantity for retail lines joined to their invoices where (i.country equals 'Austria' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date a...
text_to_sql_plan_selection
single_table/or/ranked
sensor
e5af4330a4a90a5dc7eb6ce1
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
df4e13f665a8134512e4e75518f3cb65d2019b2ff16111b1d3e01030014c3f83
en
CC-BY-4.0
Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 90 or eps1_mean is greater than 2544.76), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[90,2544.76],\"sql\":\"SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? AND eps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\"}","plan_2":"{\"parameters\":[90,2544.76],\"sql\":\"SELECT cooler, MAX(ps1_mean) AS value FR...
[[20,159.25179],[100,161.40794],[3,180.92271]]
hydraulic
train
SELECT cooler, MAX(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR eps1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3
[90,2544.76]
{"question":"Return the maximum of ps1_mean for hydraulic cycles where (accumulator equals 90 or eps1_mean is greater than 2544.76), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cy...
text_to_sql_plan_selection
single_table/or/grouped
commerce
ad543f292d5dfbc70588558d
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
fa94b97c824a52275fb07442f4f70f61862072f2696fbae2aff50edd418f6523
en
CC-BY-4.0
Return the minimum of unit_price for retail invoice lines where (country equals 'Cyprus' or unit_price is at most 8.5), grouped by country, ordered by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Cyprus\",8.5],\"sql\":\"SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC\"}","plan_2":"{\"parameters\":[\"Cyprus\",8.5],\"sql\":\"SELECT country, MIN(unit_price) AS value FROM retail_...
[["Australia",0.85],["Austria",0.55],["Bahrain",0.85],["Belgium",0.32],["Canada",0.83],["Channel Islands",1.25],["Cyprus",0.34],["Denmark",0.72],["EIRE",0.16],["Finland",0.29],["France",0.19],["Germany",0.04],["Israel",1.25],["Italy",0.85],["Japan",0.36],["Netherlands",0.21],["Norway",1.25],["Poland",1.25],["Portugal",...
online_retail_ii
train
SELECT country, MIN(unit_price) AS value FROM retail_lines WHERE (country = ? OR unit_price <= ?) GROUP BY country ORDER BY country ASC
["Cyprus",8.5]
{"question":"Return the minimum of unit_price for retail invoice lines where (country equals 'Cyprus' or unit_price is at most 8.5), grouped by country, ordered by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","stock_code":...
text_to_sql_plan_selection
single_table/or/grouped
commerce
e550a493027680677628f4a8
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
2213e2eafabed39b048b6e5863bc5008908568a9fe113d026377c6f9ddb07396
en
CC-BY-4.0
Return the minimum of product_duration for shopping sessions where (administrative is greater than 23 or product_duration is greater than 167.5), grouped by visitor_type, ordered by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[23,167.5],\"sql\":\"SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? AND product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC\"}","plan_2":"{\"parameters\":[23,167.5],\"sql\":\"SELECT visitor_type, COUNT...
[["New_Visitor",168.0],["Other",192.875],["Returning_Visitor",167.8333333]]
online_shoppers
train
SELECT visitor_type, MIN(product_duration) AS value FROM shopping_sessions WHERE (administrative > ? OR product_duration > ?) GROUP BY visitor_type ORDER BY visitor_type ASC
[23,167.5]
{"question":"Return the minimum of product_duration for shopping sessions where (administrative is greater than 23 or product_duration is greater than 167.5), grouped by visitor_type, ordered by visitor_type ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","...
text_to_sql_plan_selection
single_table/and/aggregate
sensor
50f5cc39fe6749549c1f744c
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
b362593119581e877d7e93e42549650fc4f5adbae46d86af692fb6d1924c54e4
en
CC-BY-4.0
Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and ts1_mean is at most 35.56605).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[105.7255,35.56605],\"sql\":\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR ts1_mean <= ?)\"}","plan_2":"{\"parameters\":[105.7255,35.56605],\"sql\":\"SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?)\"}...
[[6.39587]]
hydraulic
train
SELECT MIN(fs1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND ts1_mean <= ?)
[105.7255,35.56605]
{"question":"Return the minimum of fs1_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and ts1_mean is at most 35.56605).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leaka...
text_to_sql_plan_selection
single_table/and/grouped
commerce
2b9738b2b01de743fd52b0fa
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
13e8f56a91d70e6941d646d2dd2e39f7401d50155b3d45468207f3c25e79f1df
en
CC-BY-4.0
Return the maximum of product_related for shopping sessions where (weekend equals 1 and region equals 2), grouped by visitor_type, ordered by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1,2],\"sql\":\"SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (weekend = ? OR region = ?) GROUP BY visitor_type ORDER BY visitor_type ASC\"}","plan_2":"{\"parameters\":[1,2],\"sql\":\"SELECT visitor_type, COUNT(*) AS value FROM shopping_se...
[["New_Visitor",53],["Returning_Visitor",374]]
online_shoppers
train
SELECT visitor_type, MAX(product_related) AS value FROM shopping_sessions WHERE (weekend = ? AND region = ?) GROUP BY visitor_type ORDER BY visitor_type ASC
[1,2]
{"question":"Return the maximum of product_related for shopping sessions where (weekend equals 1 and region equals 2), grouped by visitor_type, ordered by visitor_type ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INT...
text_to_sql_plan_selection
single_table/date/or/ranked
commerce
b8a138f9ebc16bf378fdf466
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
0d778da95f9161bdff8bc732ee544e8bd59e8f5618186e3df2c891e7b6359d38
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (quantity is greater than 1800 or invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1800,\"2010-12-02\"],\"sql\":\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5\"}","plan_2":"{\"parameters\":[1800,\"2010-12-02\"],\"sql\":\"SELECT...
[["2010-03-23",10000.0],["2010-11-04",4784.0],["2009-12-03",4380.0],["2010-09-03",4336.0],["2010-05-18",4166.666666666667]]
online_retail_ii
train
SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY value DESC, invoice_date ASC LIMIT 5
[1800,"2010-12-02"]
{"question":"Return the average of quantity for retail invoice lines where (quantity is greater than 1800 or invoice_date is on or after '2010-12-02'), grouped by invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","...
text_to_sql_plan_selection
join/null/or/having
commerce
f8633da9aac7a84527e07fa1
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
2359061ca557ac15e4b9fd04905b892c238d53157f15d22de192884bf7e8e052
en
CC-BY-4.0
Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[648,10],\"sql\":\"SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3\"}","plan_2":"{\"par...
[["EIRE",17],["United Kingdom",2203]]
online_retail_ii
train
SELECT i.country, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ? OR i.customer_id IS NULL) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3
[648,10]
{"question":"Return the number of rows for retail lines joined to their invoices where (l.quantity is greater than 648 or i.customer_id is missing), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","s...
text_to_sql_plan_selection
single_table/and/grouped
commerce
20e2009a86c759c56b75603f
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
81cf2163229532b1fc7f125266ad500bb1f490813b9565e1292719436c6acc91
en
CC-BY-4.0
Return the sum of product_duration for shopping sessions where (administrative is at most 7 and product_duration is greater than 472.4166667), grouped by month, ordered by month ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[7,472.4166667],\"sql\":\"SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration > ?) GROUP BY month ORDER BY month ASC\"}","plan_2":"{\"parameters\":[7,472.4166667],\"sql\":\"SELECT month, COUNT(*) AS value FROM ...
[["Aug",368099.0147114],["Dec",1454587.2358972],["Feb",63822.4445776],["Jul",353617.5589004],["June",214059.5625432],["Mar",1156113.0892434],["May",2437268.2857846],["Nov",3872869.4959025998],["Oct",386936.5025441],["Sep",373322.4676949]]
online_shoppers
train
SELECT month, SUM(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration > ?) GROUP BY month ORDER BY month ASC
[7,472.4166667]
{"question":"Return the sum of product_duration for shopping sessions where (administrative is at most 7 and product_duration is greater than 472.4166667), grouped by month, ordered by month ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":...
text_to_sql_plan_selection
join/null/or/having
commerce
b7ee644cbcc642cea3998c08
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
7a670c9907cb95907acbe67477fc6ed892cd6bd82bb9179b06d2fd1c8ad9d488
en
CC-BY-4.0
Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Australia\",10],\"sql\":\"SELECT i.invoice_date, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? AND i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice...
[["2009-12-23",1.95],["2011-08-17",3.39],["2010-12-22",4.25]]
online_retail_ii
train
SELECT i.invoice_date, MAX(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.country = ? OR i.customer_id IS NOT NULL) GROUP BY i.invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, i.invoice_date ASC LIMIT 3
["Australia",10]
{"question":"Return the maximum of l.unit_price for retail lines joined to their invoices where (i.country equals 'Australia' or i.customer_id is present), grouped by i.invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.invoice_da...
text_to_sql_plan_selection
single_table/grouped
sensor
3cef9aa1a647d23acf9f3804
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
4687f2bceac59a10ec9f7e27b3fa7dc4ed53c2a13f2472761e63acfc5aea158b
en
CC-BY-4.0
Return the average of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143), grouped by valve, ordered by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2398.143],\"sql\":\"SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY valve ORDER BY valve ASC\"}","plan_2":"{\"parameters\":[2398.143],\"sql\":\"SELECT valve, COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY v...
[[73,44.22314213166144],[80,44.2804626645768],[90,44.286237798742135],[100,44.24130045719844]]
hydraulic
train
SELECT valve, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?) GROUP BY valve ORDER BY valve ASC
[2398.143]
{"question":"Return the average of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143), grouped by valve, ordered by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REA...
text_to_sql_plan_selection
join/distinct_invoice/date/and/grouped
commerce
05e7f81f95e735006990d518
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
4594a1d9b86a8515ead3c87c487539ff54283fefbb25482b15ec5497a80fe93c
en
CC-BY-4.0
Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 8.5 and i.invoice_date is on or after '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[8.5,\"2011-09-29\"],\"sql\":\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\"}","plan_2":"{\...
[["2011-09-29",1],["2011-09-30",2],["2011-10-02",1],["2011-10-03",1],["2011-10-04",1],["2011-10-05",5],["2011-10-06",4],["2011-10-07",1],["2011-10-10",2],["2011-10-11",1],["2011-10-12",4],["2011-10-13",2],["2011-10-14",1],["2011-10-17",3],["2011-10-18",2],["2011-10-19",7],["2011-10-20",3],["2011-10-21",3],["2011-10-23"...
online_retail_ii
train
SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC
[8.5,"2011-09-29"]
{"question":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 8.5 and i.invoice_date is on or after '2011-09-29'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","inv...
text_to_sql_plan_selection
join/date/having
commerce
af36e8391950269ff4c83ad8
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
40095819f1c235190b05ce9f038d8fd411b1a0c24d71bf762a81783711fd97ec
en
CC-BY-4.0
Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02'), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"2010-12-02\"],\"sql\":\"SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.country ORDER BY value ASC, i.country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[\"2010-12-02\"...
[["Channel Islands",20.2],["Australia",37.66],["Portugal",54.32]]
online_retail_ii
train
SELECT i.country, SUM(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date < ?) GROUP BY i.country HAVING COUNT(*) >= ? ORDER BY value ASC, i.country ASC LIMIT 3
["2010-12-02",10]
{"question":"Return the sum of l.unit_price for retail lines joined to their invoices where (i.invoice_date is before '2010-12-02'), grouped by i.country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by i.country ascending.","schema":{"retail_...
text_to_sql_plan_selection
single_table/ranked
sensor
502429bbc7166d23011f8e21
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
503ae06cbc869321ec610e749e91ad9d355e4fb56b2e1267bf4845dca302dad6
en
CC-BY-4.0
Return the minimum of ps1_mean for hydraulic cycles, grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[],\"sql\":\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3\"}","plan_2":"{\"parameters\":[],\"sql\":\"SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leak...
[[2,155.39155],[1,155.62217],[0,155.97478]]
hydraulic
train
SELECT pump_leakage, MIN(ps1_mean) AS value FROM hydraulic_cycles GROUP BY pump_leakage ORDER BY value ASC, pump_leakage ASC LIMIT 3
[]
{"question":"Return the minimum of ps1_mean for hydraulic cycles, grouped by pump_leakage; return at most 3 groups ordered by aggregate value ASC, breaking ties by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL",...
text_to_sql_plan_selection
single_table/and/aggregate
commerce
f55f8d442450a90476ebbf95
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
e9c7998f7452f10a2329c9c6bf27b30245df76b7f82031a7d0899f407930732b
en
CC-BY-4.0
Return the minimum of product_related for shopping sessions where (revenue equals 1 and traffic_type equals 15).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1,15],\"sql\":\"SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (revenue = ? OR traffic_type = ?)\"}","plan_2":"{\"parameters\":[1,15],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (revenue = ? AND traffic_type = ?)\"}","plan_3":"{\"par...
[[null]]
online_shoppers
train
SELECT MIN(product_related) AS value FROM shopping_sessions WHERE (revenue = ? AND traffic_type = ?)
[1,15]
{"question":"Return the minimum of product_related for shopping sessions where (revenue equals 1 and traffic_type equals 15).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","tra...
text_to_sql_plan_selection
join/distinct_invoice/date/and/grouped
commerce
705073f4ea34dea40610f85d
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
9dab738adbe0b5a775447430382b86ffcf432cf3e6335d5306e82eee05a37dc8
en
CC-BY-4.0
Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 49.95 and i.invoice_date is before '2010-12-02'), grouped by i.country, ordered by i.country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[49.95,\"2010-12-02\"],\"sql\":\"SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC\"}","plan_2":"{\"parameters\":...
[["EIRE",5],["Spain",1],["United Arab Emirates",1],["United Kingdom",31]]
online_retail_ii
train
SELECT i.country, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? AND i.invoice_date < ?) GROUP BY i.country ORDER BY i.country ASC
[49.95,"2010-12-02"]
{"question":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.unit_price is greater than 49.95 and i.invoice_date is before '2010-12-02'), grouped by i.country, ordered by i.country ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT",...
text_to_sql_plan_selection
single_table/aggregate
commerce
670fa7202519850dbe982925
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
b150eb697d6674b0cda264cfa741f758931486d80389d9d280fcdbf0552ec371
en
CC-BY-4.0
Return the sum of administrative for shopping sessions where (product_related is greater than 226).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[226],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (product_related > ?)\"}","plan_2":"{\"parameters\":[226],\"sql\":\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)\"}","plan_3":"{\"parameters\":[226],\"sql\":\"SE...
[[861]]
online_shoppers
train
SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (product_related > ?)
[226]
{"question":"Return the sum of administrative for shopping sessions where (product_related is greater than 226).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","traffic_type":"I...
text_to_sql_plan_selection
single_table/date/or/ranked
commerce
c10fc47a28b1fd18f8082ff1
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
4f95a131e9524b09996b84ea91fffa094abfd12af351d54685f3fff555e215eb
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (country equals 'Channel Islands' or invoice_date is on or after '2010-07-14'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Channel Islands\",\"2010-07-14\"],\"sql\":\"SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[\"Channel Islands\",\"2010-07-14\"],\"s...
[["Singapore",1.0],["United Arab Emirates",1.0],["Portugal",2.0]]
online_retail_ii
train
SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value ASC, country ASC LIMIT 3
["Channel Islands","2010-07-14"]
{"question":"Return the average of quantity for retail invoice lines where (country equals 'Channel Islands' or invoice_date is on or after '2010-07-14'), grouped by country; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice"...
text_to_sql_plan_selection
single_table/and/aggregate
sensor
e8cfa2ca751b7397d88bf26c
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
cda7be886e46ea386520a66a95b8da1485a8fab2161ccdf6f025823e73ab6579
en
CC-BY-4.0
Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and vs1_mean is at most 0.56377).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[105.7255,0.56377],\"sql\":\"SELECT MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?)\"}","plan_2":"{\"parameters\":[105.7255,0.56377],\"sql\":\"SELECT MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR vs1_mean <= ?)\"}",...
[[108.41435]]
hydraulic
train
SELECT MIN(ps2_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND vs1_mean <= ?)
[105.7255,0.56377]
{"question":"Return the minimum of ps2_mean for hydraulic cycles where (ps2_mean is greater than 105.7255 and vs1_mean is at most 0.56377).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakag...
text_to_sql_plan_selection
single_table/or/aggregate
commerce
0f639edf9efde8db6ec13100
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
f51eb90a419c9e426fa0651d2362e3d564882c70d9740a15fb2cdd3bad0cca9d
en
CC-BY-4.0
Return the number of rows for shopping sessions where (region equals 8 or product_related is at most 226).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[8,226],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? AND product_related <= ?)\"}","plan_2":"{\"parameters\":[8,226],\"sql\":\"SELECT SUM(administrative) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?)\"}","plan_3":...
[[12218]]
online_shoppers
train
SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ? OR product_related <= ?)
[8,226]
{"question":"Return the number of rows for shopping sessions where (region equals 8 or product_related is at most 226).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","traffic_t...
text_to_sql_plan_selection
single_table/and/having
sensor
95c52d186a8b84c9c7c49f34
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
3ec5b731426c73a492a6d97be811e52983e25933b9242811a72dc665c2f1ed63
en
CC-BY-4.0
Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143 and vs1_mean is greater than 0.54422), grouped by pump_leakage, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2398.143,0.54422,2],\"sql\":\"SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? OR vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5\"}","plan_2":"{\"parameters\":[2398.143,0.54422,2...
[[2,0.64439960591133],[1,0.6320038942307692],[0,0.5984497127659575]]
hydraulic
train
SELECT pump_leakage, AVG(vs1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ? AND vs1_mean > ?) GROUP BY pump_leakage HAVING COUNT(*) >= ? ORDER BY value DESC, pump_leakage ASC LIMIT 5
[2398.143,0.54422,2]
{"question":"Return the average of vs1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143 and vs1_mean is greater than 0.54422), grouped by pump_leakage, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by pump_leakage ascending."...
text_to_sql_plan_selection
single_table/date/and/ranked
commerce
b96a13ae7ae834020ece210f
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
2c36a6166a7f2c368c825aafc9958047e7006ce4390e3a70bf7ea188187e1848
en
CC-BY-4.0
Return the maximum of unit_price for retail invoice lines where (country equals 'Bahrain' and invoice_date is on or after '2011-09-29'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Bahrain\",\"2011-09-29\"],\"sql\":\"SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? OR invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\"}","plan_2":"{\"parameters\":[],\"sql\":\"SELECT country, MAX(unit_price) A...
[]
online_retail_ii
train
SELECT country, MAX(unit_price) AS value FROM retail_lines WHERE (country = ? AND invoice_date >= ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5
["Bahrain","2011-09-29"]
{"question":"Return the maximum of unit_price for retail invoice lines where (country equals 'Bahrain' and invoice_date is on or after '2011-09-29'), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TE...
text_to_sql_plan_selection
single_table/or/grouped
commerce
676cc8d81844e92910bbbc8e
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
ae69dc0262b850e119b18e66c5a764d8f2803aa30ceda9597eaf8b05fb146210
en
CC-BY-4.0
Return the minimum of product_duration for shopping sessions where (traffic_type equals 13 or product_related is at most 226), grouped by revenue, ordered by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[13,226],\"sql\":\"SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? AND product_related <= ?) GROUP BY revenue ORDER BY revenue ASC\"}","plan_2":"{\"parameters\":[13,226],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shopping...
[[0,0.0],[1,0.0]]
online_shoppers
train
SELECT revenue, MIN(product_duration) AS value FROM shopping_sessions WHERE (traffic_type = ? OR product_related <= ?) GROUP BY revenue ORDER BY revenue ASC
[13,226]
{"question":"Return the minimum of product_duration for shopping sessions where (traffic_type equals 13 or product_related is at most 226), grouped by revenue, ordered by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","r...
text_to_sql_plan_selection
single_table/or/ranked
sensor
6a9a7ea98367e03b28ac5b58
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
bfd8a6a1a6045681ded31c2cc7f603e4fb751d41ec0888dc7bfd8aeb089c17dd
en
CC-BY-4.0
Return the average of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[122.4767,6.57291],\"sql\":\"SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? AND fs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3\"}","plan_2":"{\"parameters\":[122.4767,6.57291],\"sql\":\"SELECT cooler, AVG(ts1_mean) AS ...
[[100,35.89672384987893],[20,46.05103799007444],[3,54.65163138519924]]
hydraulic
train
SELECT cooler, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps2_mean > ? OR fs1_mean > ?) GROUP BY cooler ORDER BY value ASC, cooler ASC LIMIT 3
[122.4767,6.57291]
{"question":"Return the average of ts1_mean for hydraulic cycles where (ps2_mean is greater than 122.4767 or fs1_mean is greater than 6.57291), grouped by cooler; return at most 3 groups ordered by aggregate value ASC, breaking ties by cooler ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"I...
text_to_sql_plan_selection
single_table/aggregate
commerce
36c0de180f332a3dc237d608
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
5c534335deb6d0228e5a398d675560bffedc51aa02cea024256aa82b4805f1c4
en
CC-BY-4.0
Return the average of product_duration for shopping sessions where (region equals 1).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (region = ?)\"}","plan_2":"{\"parameters\":[1],\"sql\":\"SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ?)\"}","plan_3":"{\"parameters\":[1],\"sql\":\"SELECT SUM(product_durat...
[[1276.1073540241807]]
online_shoppers
train
SELECT AVG(product_duration) AS value FROM shopping_sessions WHERE (region = ?)
[1]
{"question":"Return the average of product_duration for shopping sessions where (region equals 1).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","traffic_type":"INTEGER","visit...
text_to_sql_plan_selection
single_table/date/or/grouped
commerce
6eb669cbfd98402c56c5b5c8
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
a892c55faa5e6b1817ae3e92c8c409036917d12bc935616e0b74ed75bd7c69e8
en
CC-BY-4.0
Return the minimum of quantity for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[229,\"2011-05-10\"],\"sql\":\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? AND invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC\"}","plan_2":"{\"parameters\":[229,\"2011-05-10\"],\"sql\":\"SELECT invoice_date, COUNT(*...
[["2009-12-02",240],["2009-12-03",240],["2009-12-04",300],["2009-12-07",288],["2009-12-08",480],["2009-12-15",288],["2009-12-22",336],["2009-12-23",240],["2010-01-04",300],["2010-01-07",240],["2010-01-08",288],["2010-01-10",300],["2010-01-11",288],["2010-01-12",720],["2010-01-13",288],["2010-01-20",240],["2010-01-27",1...
online_retail_ii
train
SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (quantity > ? OR invoice_date >= ?) GROUP BY invoice_date ORDER BY invoice_date ASC
[229,"2011-05-10"]
{"question":"Return the minimum of quantity for retail invoice lines where (quantity is greater than 229 or invoice_date is on or after '2011-05-10'), grouped by invoice_date, ordered by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quant...
text_to_sql_plan_selection
single_table/or/grouped
sensor
e7b54ffb171b3c9e78bd30f6
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
24429ab8c002c3f5248487799961235a20535b779f1a19ab2eef05dd3d765438
en
CC-BY-4.0
Return the sum of ps1_mean for hydraulic cycles where (accumulator equals 90 or ps1_mean is at most 158.96089), grouped by valve, ordered by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[90,158.96089],\"sql\":\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY valve ORDER BY valve ASC\"}","plan_2":"{\"parameters\":[90,158.96089],\"sql\":\"SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles ...
[[73,33690.28254],[80,33813.46104],[90,34728.61195],[100,146681.39646]]
hydraulic
train
SELECT valve, SUM(ps1_mean) AS value FROM hydraulic_cycles WHERE (accumulator = ? OR ps1_mean <= ?) GROUP BY valve ORDER BY valve ASC
[90,158.96089]
{"question":"Return the sum of ps1_mean for hydraulic cycles where (accumulator equals 90 or ps1_mean is at most 158.96089), grouped by valve, ordered by valve ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL"...
text_to_sql_plan_selection
single_table/aggregate
sensor
a39434448fda4c1745eda23b
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
5726d55c077d3a10a85e17af76ce32f273684e259d947d461ab393252dc5dd12
en
CC-BY-4.0
Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is greater than 160.79926).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[160.79926],\"sql\":\"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?)\"}","plan_2":"{\"parameters\":[160.79926],\"sql\":\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?)\"}","plan_3":"{\"parameters\":[160.79926],\"sql\":\"SELECT...
[[57.78898]]
hydraulic
train
SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (ps1_mean > ?)
[160.79926]
{"question":"Return the maximum of ts1_mean for hydraulic cycles where (ps1_mean is greater than 160.79926).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage":"INTEGER","ts1_mean":"REAL",...
text_to_sql_plan_selection
single_table/or/aggregate
commerce
8914336d846e3f800a09d2f9
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
279e422a923896e906ee224676ae87799486bdd3041bc7b685cbff89798b857d
en
CC-BY-4.0
Return the average of product_related for shopping sessions where (administrative is greater than 7 or product_related is greater than 93).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[7,93],\"sql\":\"SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative > ? AND product_related > ?)\"}","plan_2":"{\"parameters\":[7,93],\"sql\":\"SELECT COUNT(*) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?)\...
[[102.44922118380062]]
online_shoppers
train
SELECT AVG(product_related) AS value FROM shopping_sessions WHERE (administrative > ? OR product_related > ?)
[7,93]
{"question":"Return the average of product_related for shopping sessions where (administrative is greater than 7 or product_related is greater than 93).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER",...
text_to_sql_plan_selection
single_table/and/grouped
commerce
98a61290e0f74186041b0a3d
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
3603e73ef8ac444ba07eda61f333838c8dac809d668dc6211b6cbd14c4a56d05
en
CC-BY-4.0
Return the average of product_duration for shopping sessions where (administrative is at most 2 and product_duration is at most 472.4166667), grouped by visitor_type, ordered by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2,472.4166667],\"sql\":\"SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC\"}","plan_2":"{\"parameters\":[2,472.4166667],\"sql\":\"SELECT visitor_...
[["New_Visitor",203.3734319294052],["Other",104.1795212780851],["Returning_Visitor",155.50109462091268]]
online_shoppers
train
SELECT visitor_type, AVG(product_duration) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY visitor_type ASC
[2,472.4166667]
{"question":"Return the average of product_duration for shopping sessions where (administrative is at most 2 and product_duration is at most 472.4166667), grouped by visitor_type, ordered by visitor_type ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","prod...
text_to_sql_plan_selection
single_table/and/ranked
commerce
886a96b4c95f3325e8d44644
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
a0ddc38805a04ceb99a85d1393b7404941f30873cdb729a805cd55493d1248d5
en
CC-BY-4.0
Return the number of rows for shopping sessions where (month equals 'Aug' and product_related is at most 31), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Aug\",31],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5\"}","plan_2":"{\"parameters\":[\"Aug\",31],\"sql\":\"SELECT revenue, COUNT(*) AS value FROM ...
[[0,221],[1,48]]
online_shoppers
train
SELECT revenue, COUNT(*) AS value FROM shopping_sessions WHERE (month = ? AND product_related <= ?) GROUP BY revenue ORDER BY value DESC, revenue ASC LIMIT 5
["Aug",31]
{"question":"Return the number of rows for shopping sessions where (month equals 'Aug' and product_related is at most 31), grouped by revenue; return at most 5 groups ordered by aggregate value DESC, breaking ties by revenue ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_d...
text_to_sql_plan_selection
single_table/or/having
sensor
fc52ca407b4e2b84b1f14181
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
f33f41c3dc487314b2601dfa114241a582c30d711c829408e04018ce958eb3ad
en
CC-BY-4.0
Return the maximum of ps2_mean for hydraulic cycles where (valve equals 100 or ps1_mean is greater than 158.27043), grouped by valve, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[100,158.27043,2],\"sql\":\"SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? AND ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5\"}","plan_2":"{\"parameters\":[100,158.27043,2],\"sql\":\"SELECT valve, MAX(...
[[100,131.58909],[90,131.05237],[80,130.86578],[73,130.63199]]
hydraulic
train
SELECT valve, MAX(ps2_mean) AS value FROM hydraulic_cycles WHERE (valve = ? OR ps1_mean > ?) GROUP BY valve HAVING COUNT(*) >= ? ORDER BY value DESC, valve ASC LIMIT 5
[100,158.27043,2]
{"question":"Return the maximum of ps2_mean for hydraulic cycles where (valve equals 100 or ps1_mean is greater than 158.27043), grouped by valve, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by valve ascending.","schema":{"hydraulic_cycles":{...
text_to_sql_plan_selection
join/or/aggregate
commerce
5ff36d9453a5662852e280ed
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
3b91ff1defebcf27631f9f0fe598ded70b473b187863862247b77a6dd276a1d8
en
CC-BY-4.0
Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"12353\",4.77],\"sql\":\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? AND l.unit_price <= ?)\"}","plan_2":"{\"parameters\":[\"12353\",4.77],\"sql\":\"SELECT AVG(l.unit_price) AS value FROM ...
[[1.9346797883388558]]
online_retail_ii
train
SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.customer_id = ? OR l.unit_price <= ?)
["12353",4.77]
{"question":"Return the average of l.unit_price for retail lines joined to their invoices where (i.customer_id equals '12353' or l.unit_price is at most 4.77).","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retail_lines":{"country":"TEXT","invoice":"TEXT","i...
text_to_sql_plan_selection
join/date/grouped
commerce
4315a629f1c69ad27647b456
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
766338e9f9b6ed194941b00f39e8c8ef92d158eefcebb6831fadb90d2965dacd
en
CC-BY-4.0
Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"2011-05-10\"],\"sql\":\"SELECT i.invoice_date, COUNT(*) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC\"}","plan_2":"{\"parameters\":[\"2011-05-10\"],\"sql\":\"...
[["2011-05-10",4.614090909090909],["2011-05-11",3.770175438596491],["2011-05-12",3.830151515151515],["2011-05-13",3.583472222222222],["2011-05-15",4.318],["2011-05-16",3.044375],["2011-05-17",3.7435211267605637],["2011-05-18",3.72864406779661],["2011-05-19",4.129866666666667],["2011-05-20",3.6259756097560976],["2011-05...
online_retail_ii
train
SELECT i.invoice_date, AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (i.invoice_date >= ?) GROUP BY i.invoice_date ORDER BY i.invoice_date ASC
["2011-05-10"]
{"question":"Return the average of l.unit_price for retail lines joined to their invoices where (i.invoice_date is on or after '2011-05-10'), grouped by i.invoice_date, ordered by i.invoice_date ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retai...
text_to_sql_plan_selection
join/date/or/aggregate
commerce
d04316ed4c461ab22b366ba2
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
e253f23497e9e6f9674d1c50167a2da09bc312cd94fcc4e080d7faf940496444
en
CC-BY-4.0
Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 1800 or i.invoice_date is before '2011-05-10').
{"plan":{"criteria":{"plan_1":"{\"parameters\":[1800,\"2011-05-10\"],\"sql\":\"SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.invoice_date < ?)\"}","plan_2":"{\"parameters\":[1800,\"2011-05-10\"],\"sql\":\"SELECT AVG(l.quantity) AS value F...
[[45.648984574409056]]
online_retail_ii
train
SELECT AVG(l.quantity) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity <= ? OR i.invoice_date < ?)
[1800,"2011-05-10"]
{"question":"Return the average of l.quantity for retail lines joined to their invoices where (l.quantity is at most 1800 or i.invoice_date is before '2011-05-10').","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retail_lines":{"country":"TEXT","invoice":"TEX...
text_to_sql_plan_selection
single_table/or/grouped
commerce
43823d03681fe3c1d495292d
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
64c1fc196991544ccb6ff271689def5d1364923a61f3b0ce5be5c8f6e6a06634
en
CC-BY-4.0
Return the maximum of quantity for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), grouped by invoice_date, ordered by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Finland\",0.55],\"sql\":\"SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? AND unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC\"}","plan_2":"{\"parameters\":[\"Finland\",0.55],\"sql\":\"SELECT invoice_date, MAX(quantity) A...
[["2009-12-01",216],["2009-12-02",288],["2009-12-03",600],["2009-12-04",300],["2009-12-05",48],["2009-12-06",30],["2009-12-07",288],["2009-12-08",936],["2009-12-09",144],["2009-12-10",200],["2009-12-11",40],["2009-12-13",72],["2009-12-14",96],["2009-12-15",336],["2009-12-16",144],["2009-12-17",216],["2009-12-18",168],[...
online_retail_ii
train
SELECT invoice_date, MAX(quantity) AS value FROM retail_lines WHERE (country = ? OR unit_price > ?) GROUP BY invoice_date ORDER BY invoice_date ASC
["Finland",0.55]
{"question":"Return the maximum of quantity for retail invoice lines where (country equals 'Finland' or unit_price is greater than 0.55), grouped by invoice_date, ordered by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER...
text_to_sql_plan_selection
single_table/or/having
commerce
07decdeb160f44c7c549fa31
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
5a7f370a136614a302570d1a75628eedc72017389e966df92baa50d3fb9841a1
en
CC-BY-4.0
Return the number of rows for retail invoice lines where (quantity is greater than 25 or unit_price is greater than 2.25), grouped by country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[25,2.25,2],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5\"}","plan_2":"{\"parameters\":[25,2.25,2],\"sql\":\"SELECT country, COUNT(*) AS ...
[["United Kingdom",17388],["Germany",347],["EIRE",164],["France",155],["Netherlands",94]]
online_retail_ii
train
SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value DESC, country ASC LIMIT 5
[25,2.25,2]
{"question":"Return the number of rows for retail invoice lines where (quantity is greater than 25 or unit_price is greater than 2.25), grouped by country, keeping only groups with at least 2 matching rows; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","schema":{"retail_l...
text_to_sql_plan_selection
single_table/or/ranked
commerce
d76960686ebbdaa04b80df84
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
ff351367a25370908c8d176bd2bf3b8fc25a9c922d37b0cc5c92d2d90564c6cc
en
CC-BY-4.0
Return the number of rows for retail invoice lines where (quantity is at most 229 or unit_price is greater than 4.77), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[229,4.77],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5\"}","plan_2":"{\"parameters\":[229,4.77],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_line...
[["United Kingdom",24561],["Germany",517],["France",237],["EIRE",194],["Netherlands",112]]
online_retail_ii
train
SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? OR unit_price > ?) GROUP BY country ORDER BY value DESC, country ASC LIMIT 5
[229,4.77]
{"question":"Return the number of rows for retail invoice lines where (quantity is at most 229 or unit_price is greater than 4.77), grouped by country; return at most 5 groups ordered by aggregate value DESC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date"...
text_to_sql_plan_selection
single_table/aggregate
sensor
9461bcbdf00535d969930ec2
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
49996caacaa36b4960bc449759968188fca2fd0b3f39a0059dd61890fe0f62e9
en
CC-BY-4.0
Return the minimum of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[2398.143],\"sql\":\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\"}","plan_2":"{\"parameters\":[2398.143],\"sql\":\"SELECT SUM(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)\"}","plan_3":"{\"parameters\":[2398.143],\"sql\":\"SELECT ...
[[35.31378]]
hydraulic
train
SELECT MIN(ts1_mean) AS value FROM hydraulic_cycles WHERE (eps1_mean > ?)
[2398.143]
{"question":"Return the minimum of ts1_mean for hydraulic cycles where (eps1_mean is greater than 2398.143).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage":"INTEGER","ts1_mean":"REAL",...
text_to_sql_plan_selection
single_table/grouped
sensor
42d06c8c7da9675f939b77fa
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
024cd5905fbf327eea1d51522d6eef7e00adff0c1daa767da170e3cc9fe6b9dc
en
CC-BY-4.0
Return the average of ts1_mean for hydraulic cycles where (fs1_mean is at most 6.57291), grouped by pump_leakage, ordered by pump_leakage ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[6.57291],\"sql\":\"SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC\"}","plan_2":"{\"parameters\":[6.57291],\"sql\":\"SELECT pump_leakage, COUNT(*) AS value FROM hydraulic_cycles WHERE ...
[[0,56.535629183673464],[1,45.743496727642274],[2,45.55466038617886]]
hydraulic
train
SELECT pump_leakage, AVG(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean <= ?) GROUP BY pump_leakage ORDER BY pump_leakage ASC
[6.57291]
{"question":"Return the average of ts1_mean for hydraulic cycles where (fs1_mean is at most 6.57291), grouped by pump_leakage, ordered by pump_leakage ascending.","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mea...
text_to_sql_plan_selection
single_table/or/grouped
commerce
ac8927940a99dfeaabb05eed
{"plan":{"confidence":1,"label":"plan_4","probabilities":{"plan_1":0,"plan_2":0,"plan_3":0,"plan_4":1},"type":"choice"}}
93b01f8f7d61e5df8ab15e25b539f793202dd69528c93bf41becee72afa1dc11
en
CC-BY-4.0
Return the sum of unit_price for retail invoice lines where (quantity is greater than 229 or unit_price is greater than 4.77), grouped by country, ordered by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[229,4.77],\"sql\":\"SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? AND unit_price > ?) GROUP BY country ORDER BY country ASC\"}","plan_2":"{\"parameters\":[229,4.77],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quant...
[["Australia",57.3],["Austria",185.75],["Bahrain",24.849999999999998],["Belgium",550.12],["Channel Islands",30.099999999999998],["Cyprus",40.9],["Denmark",60.71],["EIRE",4324.55],["Finland",681.65],["France",874.36],["Germany",3555.33],["Israel",30.95],["Italy",97.65],["Japan",19.98],["Netherlands",494.33],["Norway",91...
online_retail_ii
train
SELECT country, SUM(unit_price) AS value FROM retail_lines WHERE (quantity > ? OR unit_price > ?) GROUP BY country ORDER BY country ASC
[229,4.77]
{"question":"Return the sum of unit_price for retail invoice lines where (quantity is greater than 229 or unit_price is greater than 4.77), grouped by country, ordered by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","stock...
text_to_sql_plan_selection
single_table/aggregate
sensor
8e87378d6b10f78201c4f328
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
63e0bcd56373f88bde31b5c5932c47fc7c6045e5641a814c62d91eddd0a0ace8
en
CC-BY-4.0
Return the maximum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[6.57291],\"sql\":\"SELECT COUNT(*) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\"}","plan_2":"{\"parameters\":[6.57291],\"sql\":\"SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)\"}","plan_3":"{\"parameters\":[6.57291],\"sql\":\"SELECT SUM(t...
[[57.89928]]
hydraulic
train
SELECT MAX(ts1_mean) AS value FROM hydraulic_cycles WHERE (fs1_mean > ?)
[6.57291]
{"question":"Return the maximum of ts1_mean for hydraulic cycles where (fs1_mean is greater than 6.57291).","schema":{"hydraulic_cycles":{"accumulator":"INTEGER","cooler":"INTEGER","cycle_id":"INTEGER","eps1_mean":"REAL","fs1_mean":"REAL","ps1_mean":"REAL","ps2_mean":"REAL","pump_leakage":"INTEGER","ts1_mean":"REAL","v...
text_to_sql_plan_selection
join/distinct_invoice/ranked
commerce
d9a741d8454c1907f0991621
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
434a86901dd3835eb0bc1860a9445910b010ad8ff6d91d157c9c8ac2c48a8894
en
CC-BY-4.0
Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 229), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[229],\"sql\":\"SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5\"}","plan_2":"{\"parameters\":[229],...
[["2010-05-12",6],["2010-12-02",6],["2010-12-07",6],["2010-06-07",5],["2010-10-08",5]]
online_retail_ii
train
SELECT i.invoice_date, COUNT(DISTINCT i.invoice) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.quantity > ?) GROUP BY i.invoice_date ORDER BY value DESC, i.invoice_date ASC LIMIT 5
[229]
{"question":"Return the number of distinct i.invoice for retail lines joined to their invoices where (l.quantity is greater than 229), grouped by i.invoice_date; return at most 5 groups ordered by aggregate value DESC, breaking ties by i.invoice_date ascending.","schema":{"retail_invoices":{"country":"TEXT","customer_i...
text_to_sql_plan_selection
single_table/date/and/grouped
commerce
835b9e16b4e4f9a0f2341022
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
fd035f0c754fbf5b919f2acd0d4f56b7debf1151356cadb034c52e078c02cf22
en
CC-BY-4.0
Return the number of rows for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), grouped by country, ordered by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[25,\"2010-12-02\"],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC\"}","plan_2":"{\"parameters\":[25,\"2010-12-02\"],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lin...
[["Australia",25],["Austria",14],["Bahrain",4],["Belgium",56],["Canada",5],["Channel Islands",8],["Denmark",4],["EIRE",77],["Finland",36],["France",148],["Germany",316],["Israel",8],["Italy",6],["Japan",6],["Netherlands",18],["Norway",10],["Poland",1],["Portugal",4],["Singapore",6],["Spain",40],["Sweden",16],["Switzerl...
online_retail_ii
train
SELECT country, COUNT(*) AS value FROM retail_lines WHERE (quantity <= ? AND invoice_date >= ?) GROUP BY country ORDER BY country ASC
[25,"2010-12-02"]
{"question":"Return the number of rows for retail invoice lines where (quantity is at most 25 and invoice_date is on or after '2010-12-02'), grouped by country, ordered by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","stoc...
text_to_sql_plan_selection
single_table/grouped
commerce
991028ac4ab29631c3dd5549
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
234c9bb9aed80296e3ce81299d88f211aea207fee9c854dfcfefc036985183c3
en
CC-BY-4.0
Return the minimum of quantity for retail invoice lines where (country equals 'Austria'), grouped by invoice_date, ordered by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Austria\"],\"sql\":\"SELECT invoice_date, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY invoice_date ASC\"}","plan_2":"{\"parameters\":[\"Austria\"],\"sql\":\"SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (c...
[["2010-03-25",1],["2011-03-03",1],["2011-04-26",1],["2011-05-06",1]]
online_retail_ii
train
SELECT invoice_date, MIN(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY invoice_date ORDER BY invoice_date ASC
["Austria"]
{"question":"Return the minimum of quantity for retail invoice lines where (country equals 'Austria'), grouped by invoice_date, ordered by invoice_date ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":"TEXT","invoice_date":"TEXT","line_id":"INTEGER","quantity":"INTEGER","stock_code":"TEXT","unit_price":...
text_to_sql_plan_selection
single_table/date/or/having
commerce
a1d06765539ecf6ea91cb20e
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
0553b08a528cef7f3ced4284d2b3f74088dfb0b071a95dc5c31ddc95fcfe6dbc
en
CC-BY-4.0
Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is on or after '2010-02-18'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[4.77,\"2010-02-18\",10],\"sql\":\"SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? AND invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[4.77,\"2010-02-18\"],\"sql\...
[["Bahrain",97],["Norway",114],["Portugal",174]]
online_retail_ii
train
SELECT country, SUM(quantity) AS value FROM retail_lines WHERE (unit_price > ? OR invoice_date >= ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3
[4.77,"2010-02-18",10]
{"question":"Return the sum of quantity for retail invoice lines where (unit_price is greater than 4.77 or invoice_date is on or after '2010-02-18'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","sche...
text_to_sql_plan_selection
join/date/or/aggregate
commerce
e595329b789ceb8e5ea5e7dd
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
5aa3da90222b98b58d8ba81c08304ebfbac285ffcab11607730703e5a6558854
en
CC-BY-4.0
Return the average of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 4.77 or i.invoice_date is on or after '2010-12-02').
{"plan":{"criteria":{"plan_1":"{\"parameters\":[4.77,\"2010-12-02\"],\"sql\":\"SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)\"}","plan_2":"{\"parameters\":[4.77,\"2010-12-02\"],\"sql\":\"SELECT AVG(l.unit_price) AS v...
[[6.157663988903658]]
online_retail_ii
train
SELECT AVG(l.unit_price) AS value FROM retail_lines l JOIN retail_invoices i ON l.invoice = i.invoice WHERE (l.unit_price > ? OR i.invoice_date >= ?)
[4.77,"2010-12-02"]
{"question":"Return the average of l.unit_price for retail lines joined to their invoices where (l.unit_price is greater than 4.77 or i.invoice_date is on or after '2010-12-02').","schema":{"retail_invoices":{"country":"TEXT","customer_id":"TEXT","invoice":"TEXT","invoice_date":"TEXT"},"retail_lines":{"country":"TEXT",...
text_to_sql_plan_selection
single_table/and/ranked
commerce
4fbeaf52ad1a99102322a3ab
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
34d94f86fd05a5b48d3c4d1fe8fc3adca7e6a7906d75c7367e14454cd96d6633
en
CC-BY-4.0
Return the maximum of administrative for shopping sessions where (administrative is at most 7 and product_duration is at most 3395.729484), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[7,3395.729484],\"sql\":\"SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? OR product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3\"}","plan_2":"{\"parameters\":[7,3395.729484],\"sql\":...
[["Other",6],["New_Visitor",7],["Returning_Visitor",7]]
online_shoppers
train
SELECT visitor_type, MAX(administrative) AS value FROM shopping_sessions WHERE (administrative <= ? AND product_duration <= ?) GROUP BY visitor_type ORDER BY value ASC, visitor_type ASC LIMIT 3
[7,3395.729484]
{"question":"Return the maximum of administrative for shopping sessions where (administrative is at most 7 and product_duration is at most 3395.729484), grouped by visitor_type; return at most 3 groups ordered by aggregate value ASC, breaking ties by visitor_type ascending.","schema":{"shopping_sessions":{"administrati...
text_to_sql_plan_selection
single_table/date/having
commerce
9fb0a46c3d8f23c86557c66f
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
cb237ff1501dcaa58a615ec649f01c20baeddd30487d6d9da1f1370dc74b3b7e
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (invoice_date is before '2011-05-10'), grouped by invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"2011-05-10\"],\"sql\":\"SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date ORDER BY value ASC, invoice_date ASC LIMIT 3\"}","plan_2":"{\"parameters\":[\"2011-05-10\",10],\"sql\":\"SELECT invoice_date, AVG(quantit...
[["2010-12-19",1.6666666666666667],["2010-08-01",4.583333333333333],["2011-02-09",5.923076923076923]]
online_retail_ii
train
SELECT invoice_date, AVG(quantity) AS value FROM retail_lines WHERE (invoice_date < ?) GROUP BY invoice_date HAVING COUNT(*) >= ? ORDER BY value ASC, invoice_date ASC LIMIT 3
["2011-05-10",10]
{"question":"Return the average of quantity for retail invoice lines where (invoice_date is before '2011-05-10'), grouped by invoice_date, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by invoice_date ascending.","schema":{"retail_lines":{"coun...
text_to_sql_plan_selection
single_table/and/aggregate
commerce
620d71db685d8b184dc473f5
{"plan":{"confidence":1,"label":"plan_1","probabilities":{"plan_1":1,"plan_2":0,"plan_3":0,"plan_4":0},"type":"choice"}}
6a20b98cd4b8df56ba810ac2cd7d7a11f7dea61f96d864ae4a7c2d8713d8ed2f
en
CC-BY-4.0
Return the maximum of product_related for shopping sessions where (month equals 'June' and weekend equals 0).
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"June\",0],\"sql\":\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?)\"}","plan_2":"{\"parameters\":[\"June\",0],\"sql\":\"SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? OR weekend = ?)\"}","plan_...
[[358]]
online_shoppers
train
SELECT MAX(product_related) AS value FROM shopping_sessions WHERE (month = ? AND weekend = ?)
["June",0]
{"question":"Return the maximum of product_related for shopping sessions where (month equals 'June' and weekend equals 0).","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"TEXT","product_duration":"REAL","product_related":"INTEGER","region":"INTEGER","revenue":"INTEGER","session_id":"INTEGER","traffi...
text_to_sql_plan_selection
single_table/and/ranked
commerce
447175478fbd6d9342a1f1fc
{"plan":{"confidence":1,"label":"plan_3","probabilities":{"plan_1":0,"plan_2":0,"plan_3":1,"plan_4":0},"type":"choice"}}
5ff4c18e0c12907919936f48340fbfa7357d84539fc4c04b4da35fb6de8f59d3
en
CC-BY-4.0
Return the average of product_related for shopping sessions where (month equals 'Jul' and traffic_type equals 12), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Jul\",12],\"sql\":\"SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? OR traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5\"}","plan_2":"{\"parameters\":[],\"sql\":\"SELECT visitor_type, AVG(pr...
[]
online_shoppers
train
SELECT visitor_type, AVG(product_related) AS value FROM shopping_sessions WHERE (month = ? AND traffic_type = ?) GROUP BY visitor_type ORDER BY value DESC, visitor_type ASC LIMIT 5
["Jul",12]
{"question":"Return the average of product_related for shopping sessions where (month equals 'Jul' and traffic_type equals 12), grouped by visitor_type; return at most 5 groups ordered by aggregate value DESC, breaking ties by visitor_type ascending.","schema":{"shopping_sessions":{"administrative":"INTEGER","month":"T...
text_to_sql_plan_selection
single_table/having
commerce
eed8dfc211c4fe1eb14c69d4
{"plan":{"confidence":1,"label":"plan_2","probabilities":{"plan_1":0,"plan_2":1,"plan_3":0,"plan_4":0},"type":"choice"}}
6a86df21853cb7a19a002cfb4dee925365842f5519a5bc458730b5bb84cdfff0
en
CC-BY-4.0
Return the average of quantity for retail invoice lines where (country equals 'Cyprus'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.
{"plan":{"criteria":{"plan_1":"{\"parameters\":[\"Cyprus\",10],\"sql\":\"SELECT country, COUNT(*) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3\"}","plan_2":"{\"parameters\":[\"Cyprus\",10],\"sql\":\"SELECT country, AVG(quantity) AS value FR...
[["Cyprus",47.125]]
online_retail_ii
train
SELECT country, AVG(quantity) AS value FROM retail_lines WHERE (country = ?) GROUP BY country HAVING COUNT(*) >= ? ORDER BY value ASC, country ASC LIMIT 3
["Cyprus",10]
{"question":"Return the average of quantity for retail invoice lines where (country equals 'Cyprus'), grouped by country, keeping only groups with at least 10 matching rows; return at most 3 groups ordered by aggregate value ASC, breaking ties by country ascending.","schema":{"retail_lines":{"country":"TEXT","invoice":...
text_to_sql_plan_selection